| 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 <!-- Emulates Android's preference_category_material.xml on pre-L devices. | 6 <!-- Emulates Android's preference_category_material.xml on pre-L devices. |
| 7 Also used as the layout for IconPreferenceCategory. --> | 7 Also used as the layout for IconPreferenceCategory. --> |
| 8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 9 android:layout_width="match_parent" | 9 android:layout_width="match_parent" |
| 10 android:layout_height="wrap_content" | 10 android:layout_height="wrap_content" |
| 11 android:gravity="center_vertical" | 11 android:gravity="center_vertical" |
| 12 style="@style/PreferenceCategoryWithButtonStyle" > | 12 style="@style/PreferenceCategoryWithButtonStyle" > |
| 13 | 13 |
| 14 <TextView | 14 <TextView |
| 15 android:id="@android:id/title" | 15 android:id="@android:id/title" |
| 16 android:layout_width="0dp" | 16 android:layout_width="0dp" |
| 17 android:layout_weight="1" | 17 android:layout_weight="1" |
| 18 android:layout_height="wrap_content" | 18 android:layout_height="wrap_content" |
| 19 android:textAppearance="@style/PreferenceCategoryTextStyle" /> | 19 android:textAppearance="@style/PreferenceCategoryTextStyle" /> |
| 20 | 20 |
| 21 <ImageView | 21 <ImageView |
| 22 android:id="@android:id/icon" | 22 android:id="@android:id/icon" |
| 23 android:layout_width="wrap_content" | 23 android:layout_width="wrap_content" |
| 24 android:layout_height="wrap_content" | 24 android:layout_height="wrap_content" |
| 25 android:minHeight="@dimen/min_touch_target_size" |
| 26 android:minWidth="@dimen/min_touch_target_size" |
| 27 android:scaleType="center" |
| 25 android:background="?android:attr/selectableItemBackground" /> | 28 android:background="?android:attr/selectableItemBackground" /> |
| 26 | 29 |
| 27 </LinearLayout> | 30 </LinearLayout> |
| OLD | NEW |