Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / preference_header_item_material.xml
blobffb18ae4a8747ec898f1fd202905662a6a59d12f
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2014 The Android Open Source Project
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
8           http://www.apache.org/licenses/LICENSE-2.0
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
17 <!-- Layout of a header item in PreferenceActivity. -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="match_parent"
20     android:layout_height="wrap_content"
21     android:minHeight="48dp"
22     android:background="?android:attr/activatedBackgroundIndicator"
23     android:gravity="center_vertical"
24     android:paddingStart="24dip"
25     android:paddingEnd="?android:attr/scrollbarSize">
27     <ImageView
28         android:id="@+id/icon"
29         android:layout_width="wrap_content"
30         android:layout_height="wrap_content"
31         android:layout_marginStart="0dip"
32         android:layout_marginEnd="8dip"
33         android:layout_gravity="center" />
35     <RelativeLayout
36         android:layout_width="wrap_content"
37         android:layout_height="wrap_content"
38         android:layout_marginStart="0dip"
39         android:layout_marginEnd="6dip"
40         android:layout_marginTop="6dip"
41         android:layout_marginBottom="6dip"
42         android:layout_weight="1">
44         <TextView android:id="@+android:id/title"
45             android:layout_width="wrap_content"
46             android:layout_height="wrap_content"
47             android:singleLine="true"
48             android:textAppearance="?android:attr/textAppearanceListItem"
49             android:textColor="?android:attr/textColorPrimaryActivated"
50             android:ellipsize="marquee"
51             android:fadingEdge="horizontal" />
53         <TextView android:id="@+android:id/summary"
54             android:layout_width="wrap_content"
55             android:layout_height="wrap_content"
56             android:layout_below="@android:id/title"
57             android:layout_alignStart="@android:id/title"
58             android:textAppearance="?android:attr/textAppearanceListItemSecondary"
59             android:textColor="?android:attr/textColorSecondaryActivated"
60             android:ellipsize="end"
61             android:maxLines="2" />
63     </RelativeLayout>
65 </LinearLayout>