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

Side by Side Diff: chrome/android/java/res/layout/preference_button.xml

Issue 914003002: Use ButtonCompat to get Material-y buttons in more places. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <!-- Layout used by ButtonPreference for the button widget style. --> 6 <!-- Layout used by ButtonPreference for the button widget style. -->
7 7
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 8 <LinearLayout
9 xmlns:android="http://schemas.android.com/apk/res/android"
10 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 style="@style/PreferenceLayout" 11 style="@style/PreferenceLayout"
10 android:layout_width="match_parent" 12 android:layout_width="match_parent"
11 android:layout_height="wrap_content" 13 android:layout_height="wrap_content"
14 android:clipToPadding="false"
12 android:gravity="center_vertical" 15 android:gravity="center_vertical"
13 android:orientation="vertical"> 16 android:orientation="vertical">
14 17
15 <Button 18 <org.chromium.chrome.browser.widget.ButtonCompat
16 android:id="@+id/button_preference" 19 android:id="@+id/button_preference"
17 android:layout_height="wrap_content" 20 android:layout_height="wrap_content"
18 android:layout_width="wrap_content" 21 android:layout_width="wrap_content"
19 android:layout_marginStart="@dimen/pref_button_margin_start" 22 android:minHeight="40dp"
20 android:paddingStart="@dimen/pref_button_horizontal_padding" 23 android:textColor="#fff"
21 android:paddingEnd="@dimen/pref_button_horizontal_padding" 24 chrome:buttonColor="@color/pref_accent_color" />
22 android:paddingTop="@dimen/pref_button_vertical_padding"
23 android:paddingBottom="@dimen/pref_button_vertical_padding" />
24 25
25 </LinearLayout> 26 </LinearLayout>
OLDNEW
« no previous file with comments | « chrome/android/java/res/layout/infobar_button.xml ('k') | chrome/android/java/res/layout/sad_tab.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698