Skip to content Skip to sidebar Skip to footer

Set All Button Style In Styles.xml

I want to make my app to have several styles. The style changes button style, textview color, and layout background color. I have my button style in xml files. And this is my code:

Solution 1:

Try this style to change for just buttons in the app

  <style name="ThemeIndigo" parent="@android:style/Theme.Material.NoActionBar">
  <item name="android:buttonStyle">@style/MyButton</item>
</style>

<style name="MyButton" parent="android:Widget.Material.Button">
  <item name="android:textSize">19sp</item>
  <item name="android:layout_margin">0dip</item>
  <item name="android:background">#ff0000</item>
 </style>

Post a Comment for "Set All Button Style In Styles.xml"