Last active
November 27, 2016 07:32
-
-
Save ingyesid/e513f47b573607205195 to your computer and use it in GitHub Desktop.
Colored Button Style With AppCompat +22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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