1 <?xml version="1.0" encoding="utf-8"?>
3 /* //device/apps/common/assets/res/layout/list_content.xml
5 ** Copyright 2014, The Android Open Source Project
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
11 ** http://www.apache.org/licenses/LICENSE-2.0
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.
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">
27 android:orientation="horizontal"
28 android:layout_width="match_parent"
29 android:layout_height="0px"
30 android:layout_weight="1">
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" >
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" />
54 <FrameLayout android:id="@+id/list_footer"
55 android:layout_width="match_parent"
56 android:layout_height="wrap_content"
57 android:layout_weight="0" />
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" >
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
73 <include layout="@layout/breadcrumbs_in_fragment_material" />
75 <android.preference.PreferenceFrameLayout android:id="@+id/prefs"
76 android:layout_width="match_parent"
77 android:layout_height="0dip"
78 android:layout_weight="1"
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">
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"
97 android:orientation="horizontal"
98 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
100 android:layout_alignParentEnd="true">
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"
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"