1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //device/apps/common/assets/res/layout/list_content.xml
4**
5** Copyright 2014, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22    android:orientation="vertical"
23    android:layout_height="match_parent"
24    android:layout_width="match_parent">
25
26    <LinearLayout
27        android:id="@+id/prefs_container"
28        android:orientation="horizontal"
29        android:layout_width="match_parent"
30        android:layout_height="0px"
31        android:layout_weight="1">
32
33        <LinearLayout
34            style="?attr/preferenceHeaderPanelStyle"
35            android:id="@+id/headers"
36            android:orientation="vertical"
37            android:layout_width="0px"
38            android:layout_height="match_parent"
39            android:layout_weight="@integer/preferences_left_pane_weight"
40            android:background="?attr/windowBackground"
41            android:elevation="4dip" >
42
43            <ListView android:id="@android:id/list"
44                style="?attr/preferenceListStyle"
45                android:layout_width="match_parent"
46                android:layout_height="0px"
47                android:layout_weight="1"
48                android:clipToPadding="false"
49                android:drawSelectorOnTop="false"
50                android:cacheColorHint="@color/transparent"
51                android:listPreferredItemHeight="48dp"
52                android:scrollbarAlwaysDrawVerticalTrack="true"
53                android:divider="@null" />
54
55            <FrameLayout android:id="@+id/list_footer"
56                    android:layout_width="match_parent"
57                    android:layout_height="wrap_content"
58                    android:layout_weight="0" />
59
60        </LinearLayout>
61
62        <LinearLayout
63                android:id="@+id/prefs_frame"
64                style="?attr/preferencePanelStyle"
65                android:layout_width="0px"
66                android:layout_height="match_parent"
67                android:layout_weight="@integer/preferences_right_pane_weight"
68                android:orientation="vertical">
69
70            <!-- Breadcrumb inserted here, in certain screen sizes. In others, it will be an
71                empty layout or just padding, and PreferenceActivity will put the breadcrumbs in
72                the action bar. -->
73            <include layout="@layout/breadcrumbs_in_fragment_material" />
74
75            <android.preference.PreferenceFrameLayout android:id="@+id/prefs"
76                    android:layout_width="match_parent"
77                    android:layout_height="0dip"
78                    android:layout_weight="1"
79                />
80        </LinearLayout>
81    </LinearLayout>
82
83    <RelativeLayout android:id="@+id/button_bar"
84        android:layout_height="wrap_content"
85        android:layout_width="match_parent"
86        android:layout_weight="0"
87        android:visibility="gone">
88
89        <Button android:id="@+id/back_button"
90            android:layout_width="150dip"
91            android:layout_height="wrap_content"
92            android:layout_margin="5dip"
93            android:layout_alignParentStart="true"
94            android:text="@string/back_button_label"
95        />
96        <LinearLayout
97            android:orientation="horizontal"
98            android:layout_width="wrap_content"
99            android:layout_height="wrap_content"
100            android:layout_alignParentEnd="true">
101
102            <Button android:id="@+id/skip_button"
103                android:layout_width="150dip"
104                android:layout_height="wrap_content"
105                android:layout_margin="5dip"
106                android:text="@string/skip_button_label"
107                android:visibility="gone"
108            />
109
110            <Button android:id="@+id/next_button"
111                android:layout_width="150dip"
112                android:layout_height="wrap_content"
113                android:layout_margin="5dip"
114                android:text="@string/next_button_label"
115            />
116        </LinearLayout>
117    </RelativeLayout>
118</LinearLayout>
119