Last active
March 4, 2023 07:52
-
-
Save dmytrodanylyk/3513e42839ae4309d2b5 to your computer and use it in GitHub Desktop.
Revisions
-
dmytrodanylyk revised this gist
Jan 31, 2015 . 2 changed files with 2 additions and 11 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -2,18 +2,15 @@ <style name="AppCompat.Button.Flat.Common" parent="Base.TextAppearance.AppCompat.Button"> <item name="android:background">@drawable/btn_flat_selector</item> <item name="android:minWidth">@dimen/btn_flat_min_width</item> <item name="android:minHeight">@dimen/btn_flat_min_height</item> <item name="android:textColor">@color/btn_flat_selector</item> <item name="android:textAllCaps">true</item> <item name="android:textStyle">bold</item> <item name="android:paddingLeft">@dimen/btn_flat_padding</item> <item name="android:paddingRight">@dimen/btn_flat_padding</item> <item name="android:layout_marginLeft">@dimen/btn_flat_margin</item> <item name="android:layout_marginRight">@dimen/btn_flat_margin</item> </style> </resources> -
dmytrodanylyk created this gist
Jan 24, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_enabled="false" android:color="@color/flat_disabled_text"/> <item android:color="@color/flat_normal_text"/> </selector> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@android:color/white" /> <corners android:radius="@dimen/btn_flat_corner_radius" /> </shape> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="@color/flat_pressed"> <item android:id="@android:id/mask" android:drawable="@drawable/btn_flat_normal"/> </ripple> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@color/flat_pressed" /> <corners android:radius="@dimen/btn_flat_corner_radius" /> </shape> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" android:exitFadeDuration="@android:integer/config_mediumAnimTime" android:enterFadeDuration="@android:integer/config_mediumAnimTime"> <item android:drawable="@drawable/btn_flat_pressed" android:state_pressed="true" /> <item android:drawable="@android:color/transparent" /> </selector> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ <Button android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/AppCompat.Button.Flat" android:text="Button"/> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <resources> <style name="AppCompat.Button.Flat" parent="AppCompat.Button.Flat.Common"> <!--because on Lollipop we use bold font--> <item name="android:textStyle">normal</item> </style> </resources> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> <color name="flat_pressed">#66999999</color> <color name="flat_disabled_text">#40000000</color> <color name="flat_normal_text">#000000</color> </resources> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <resources> <dimen name="btn_flat_corner_radius">1dp</dimen> <dimen name="btn_flat_min_width">88dp</dimen> <dimen name="btn_flat_min_height">36dp</dimen> <dimen name="btn_flat_padding">8dp</dimen> <dimen name="btn_flat_margin">4dp</dimen> </resources> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ <resources> <style name="AppCompat.Button.Flat.Common" parent="Base.TextAppearance.AppCompat.Button"> <item name="android:background">@drawable/btn_flat_selector</item> <item name="android:textColor">@color/btn_flat_selector</item> <item name="android:minWidth">@dimen/btn_flat_min_width</item> <item name="android:minHeight">@dimen/btn_flat_min_height</item> <item name="android:textAllCaps">true</item> <item name="android:paddingLeft">@dimen/btn_flat_padding</item> <item name="android:paddingRight">@dimen/btn_flat_padding</item> <item name="android:layout_marginLeft">@dimen/btn_flat_margin</item> <item name="android:layout_marginRight">@dimen/btn_flat_margin</item> </style> <style name="AppCompat.Button.Flat" parent="AppCompat.Button.Flat.Common"> <item name="android:textStyle">bold</item> </style> </resources>