Skip to content

Instantly share code, notes, and snippets.

@ingyesid
Last active November 27, 2016 07:32
Show Gist options
  • Save ingyesid/e513f47b573607205195 to your computer and use it in GitHub Desktop.
Save ingyesid/e513f47b573607205195 to your computer and use it in GitHub Desktop.
Colored Button Style With AppCompat +22
<Button
android:id="@+id/but_next"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/but_continue"
android:theme="@style/Button.Tinted" />
<style name="Button.Tinted" parent="Widget.AppCompat.Button">
<item name="colorButtonNormal">YOUR_TINT_COLOR</item>
<item name="colorControlHighlight">@color/colorAccent</item>
<item name="android:textColor">@android:color/white</item>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment