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
Post a Comment