Can I get a hold of Button Location Data in my Android Application -


in application, i'm (still) trying manipulate button views way want. i'd attempt experiment i'll draw android rect or rectf in same location (transparent) button highlight it's appearance.

however, can't figure out how mitts on information. buttons in question defined in xml, in linear layout, inside android has know sizes , locations. right?

any suggestions? thanks, r.

you should able set background of button custom xml drawable drawable containing stroke element around edge.

you need create custom drawable: few lines of xml.

<shape xmlns:android="http://schemas.android.com/apk/res/android">     <stroke android:width="1dp" android:color="#cccccc" />     <corners android:radius="10dp" /> </shape> 

edit: updated include rounded corners.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -