OLD | NEW |
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> |
OLD | NEW |