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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -