Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: chrome/android/java/res/values-v17/styles.xml

Issue 902893004: Add ButtonCompat: a Material-styled button on all versions of Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/app/chrome Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/values-v17/styles.xml
diff --git a/chrome/android/java/res/values-v17/styles.xml b/chrome/android/java/res/values-v17/styles.xml
index 18f7f5677f7dc8b506291942e5d029fe9e32a258..dd61a6ccee6816d338deba4c0cae7ae0b260343d 100644
--- a/chrome/android/java/res/values-v17/styles.xml
+++ b/chrome/android/java/res/values-v17/styles.xml
@@ -184,4 +184,25 @@
<item name="android:windowEnterAnimation">@anim/fullscreen_notification_in</item>
</style>
+ <!-- Buttons -->
+ <style name="ButtonCompatBase">
+ <item name="android:minWidth">88dp</item>
+ <item name="android:minHeight">36dp</item>
+ <item name="android:textSize">14sp</item>
+ <item name="android:paddingStart">20dp</item>
+ <item name="android:paddingEnd">20dp</item>
+ <item name="android:paddingTop">5dp</item>
+ <item name="android:paddingBottom">5dp</item>
+ <item name="android:textAllCaps">true</item>
+ <item name="android:focusable">true</item>
+ <item name="android:clickable">true</item>
+ <item name="android:gravity">center_vertical|center_horizontal</item>
+ </style>
+ <style name="ButtonCompat" parent="ButtonCompatBase">
+ <item name="android:background">@drawable/button_compat_shape</item>
+ </style>
+ <style name="ButtonBorderlessCompat" parent="ButtonCompat">
+ <item name="android:background">?attr/selectableItemBackground</item>
+ </style>
+
</resources>
« no previous file with comments | « chrome/android/java/res/drawable/button_compat_shape.xml ('k') | chrome/android/java/res/values-v21/styles.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698