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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -