定義した<style>タグのnameに、独自のスタイルの名前を指定する。
Style resource | Android Developers
まあ、当たり前の話だけど。
strings.xmlで、
Button1とButton2の2つに。
styles.xmlで、
nameの違う2つのButton用style。
CustomStyle_30dpButtonに加えて、新たに、幅も高さも100dpのCustomStyle_100dpButtonを定義。
activity_main.xmlで、
button1にはCustomStyle_30dpButton、button2にはCustomStyle_100dpButtonを指定。
![Button1は30dpだから小さいけど、Button2は100dpだから大きい。](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20201128/20201128181909.png)
Button1は30dpだから小さいけど、Button2は100dpだから大きい。
Sample/android/styleTag/name/src/styleTag at master · bg1bgst333/Sample · GitHub