1 <?xml version="1.0" encoding="utf-8"?>
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
4 found in the LICENSE file. -->
6 <!-- Emulates Android's preference_category_material.xml on pre-L devices.
7 Also used as the layout for IconPreferenceCategory. -->
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
9 android:layout_width="match_parent"
10 android:layout_height="wrap_content"
11 android:gravity="center_vertical"
12 style="@style/PreferenceCategoryWithButtonStyle" >
15 android:id="@android:id/title"
16 android:layout_width="0dp"
17 android:layout_weight="1"
18 android:layout_height="wrap_content"
19 android:textAppearance="@style/PreferenceCategoryTextStyle" />
21 <!-- Users of this layout are responsible to set contentDescription. -->
23 android:id="@android:id/icon"
24 android:layout_width="wrap_content"
25 android:layout_height="wrap_content"
26 android:minHeight="@dimen/min_touch_target_size"
27 android:minWidth="@dimen/min_touch_target_size"
28 android:scaleType="center"
29 android:background="?android:attr/selectableItemBackground"
30 android:contentDescription="@null" />