xml - How can I reuse this Android button? -


i have button using 13 times in android application's main.xml file. have xml defined once, can make changes in 1 place instead of 13. each of 13 instances needs have own id, though. should simplify xml? i've tried using <include> hasn't worked me. must have been doing wrong. i'd appreciate if show me how correctly. thanks.

here's xml button i'd reuse:

<button   android:width="70dp"    android:layout_marginleft="10dp"   android:layout_marginright="10dp" /> 

you should use styles , themes sort of things.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -