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:orientation="horizontal"
28        android:layout_width="match_parent"
29        android:layout_height="0px"
30        android:layout_weight="1">
31
32        <LinearLayout
33            style="?attr/preferenceHeaderPanelStyle"
34            android:id="@+id/headers"
35            android:orientation="vertical"
36            android:layout_width="0px"
37            android:layout_height="match_parent"
38            android:layout_weight="@integer/preferences_left_pane_weight"
39            android:background="?attr/windowBackground"
40            android:elevation="4dip" >
41
42            <ListView android:id="@android:id/list"
43                style="?attr/preferenceListStyle"
44                android:layout_width="match_parent"
45                android:layout_height="0px"
46                android:layout_weight="1"
47                android:clipToPadding="false"
48                android:drawSelectorOnTop="false"
49                android:cacheColorHint="@color/transparent"
50                android:listPreferredItemHeight="48dp"
51                android:scrollbarAlwaysDrawVerticalTrack="true"
52                android:divider="@null" />
53
54            <FrameLayout android:id="@+id/list_footer"
55                    android:layout_width="match_parent"
56                    android:layout_height="wrap_content"
57                    android:layout_weight="0" />
58
59        </LinearLayout>
60
61        <LinearLayout
62                android:id="@+id/prefs_frame"
63                style="?attr/preferencePanelStyle"
64                android:layout_width="0px"
65                android:layout_height="match_parent"
66                android:layout_weight="@integer/preferences_right_pane_weight"
67                android:orientation="vertical"
68                android:visibility="gone" >
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