Created
January 12, 2015 16:21
-
-
Save alexbatashev/f5c0cfad37b34dbbc618 to your computer and use it in GitHub Desktop.
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item | |
android:state_pressed="true" | |
android:drawable="@drawable/button_default_pressed"/> | |
<item | |
android:drawable="@drawable/btn_borderless_normal"/> | |
</selector> |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<inset xmlns:android="http://schemas.android.com/apk/res/android" | |
android:insetLeft="@dimen/button_inset_horizontal_material" | |
android:insetTop="@dimen/button_inset_vertical_material" | |
android:insetRight="@dimen/button_inset_horizontal_material" | |
android:insetBottom="@dimen/button_inset_vertical_material"> | |
<shape android:shape="rectangle"> | |
<corners android:radius="@dimen/control_corner_material" /> | |
<solid android:color="@color/buttonNormal" /> | |
<padding android:left="@dimen/button_padding_horizontal_material" | |
android:top="@dimen/button_padding_vertical_material" | |
android:right="@dimen/button_padding_horizontal_material" | |
android:bottom="@dimen/button_padding_vertical_material" /> | |
</shape> | |
</inset> |
This file contains 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="AppTheme.Widget.BorderlessButton" parent="android:Widget.Material.Button.Borderless" /> |
This file contains 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="AppTheme.Widget.BorderlessButton"> | |
<item name="android:background">@drawable/btn_borderless</item> | |
<item name="android:textAllCaps">true</item> | |
<item name="android:textColor">@color/button_label</item> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment