android - How to act on attributes for custom XML Views -
android - How to act on attributes for custom XML Views -
i have created view called roundedimageview, corners rounded. want attribute called cornerradius lets me (from xml) specify radius. how in java code have
public class roundedimageview extends imageview
can attribute "cornerradius" specified in xml?
here's link example. link
search "custom attributes android" more examples.
also follow thread how retrieve xml attribute custom control
android android-layout android-custom-view
Comments
Post a Comment