Posts

Showing posts with the label Android Button

Android Material Design Button Styles

Image
Answer : I will add my answer since I don't use any of the other answers provided. With the Support Library v7, all the styles are actually already defined and ready to use, for the standard buttons, all of these styles are available: style="@style/Widget.AppCompat.Button" style="@style/Widget.AppCompat.Button.Colored" style="@style/Widget.AppCompat.Button.Borderless" style="@style/Widget.AppCompat.Button.Borderless.Colored" Widget.AppCompat.Button : Widget.AppCompat.Button.Colored : Widget.AppCompat.Button.Borderless Widget.AppCompat.Button.Borderless.Colored : To answer the question, the style to use is therefore <Button style="@style/Widget.AppCompat.Button.Colored" ....... ....... ....... android:text="Button"/> How to change the color For the whole app: The color of all the UI controls (not only buttons, but also floating action buttons, checkboxes etc.) is managed by the attribute ...