preference_list_content_material.xml revision b22be6fcf2689a7de3795f406678caf73180a990
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
53            <FrameLayout android:id="@+id/list_footer"
54                    android:layout_width="match_parent"
55                    android:layout_height="wrap_content"
56                    android:layout_weight="0" />
57
58        </LinearLayout>
59
60        <LinearLayout
61                android:id="@+id/prefs_frame"
62                style="?attr/preferencePanelStyle"
63                android:layout_width="0px"
64                android:layout_height="match_parent"
65                android:layout_weight="@integer/preferences_right_pane_weight"
66                android:orientation="vertical"
67                android:visibility="gone" >
68
69            <!-- Breadcrumb inserted here, in certain screen sizes. In others, it will be an
70                empty layout or just padding, and PreferenceActivity will put the breadcrumbs in
71                the action bar. -->
72            <include layout="@layout/breadcrumbs_in_fragment_material" />
73
74            <android.preference.PreferenceFrameLayout android:id="@+id/prefs"
75                    android:layout_width="match_parent"
76                    android:layout_height="0dip"
77                    android:layout_weight="1"
78                />
79        </LinearLayout>
80    </LinearLayout>
81
82    <RelativeLayout android:id="@+id/button_bar"
83        android:layout_height="wrap_content"
84        android:layout_width="match_parent"
85        android:layout_weight="0"
86        android:visibility="gone">
87
88        <Button android:id="@+id/back_button"
89            android:layout_width="150dip"
90            android:layout_height="wrap_content"
91            android:layout_margin="5dip"
92            android:layout_alignParentStart="true"
93            android:text="@string/back_button_label"
94        />
95        <LinearLayout
96            android:orientation="horizontal"
97            android:layout_width="wrap_content"
98            android:layout_height="wrap_content"
99            android:layout_alignParentEnd="true">
100
101            <Button android:id="@+id/skip_button"
102                android:layout_width="150dip"
103                android:layout_height="wrap_content"
104                android:layout_margin="5dip"
105                android:text="@string/skip_button_label"
106                android:visibility="gone"
107            />
108
109            <Button android:id="@+id/next_button"
110                android:layout_width="150dip"
111                android:layout_height="wrap_content"
112                android:layout_margin="5dip"
113                android:text="@string/next_button_label"
114            />
115        </LinearLayout>
116    </RelativeLayout>
117</LinearLayout>
118