preference_list_content.xml revision 896d1ebd12e77262464b9ec61a1a8dbb545c6098
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //device/apps/common/assets/res/layout/list_content.xml
4**
5** Copyright 2006, 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            android:id="@+id/headers"
34            android:orientation="vertical"
35            android:layout_width="0px"
36            android:layout_height="match_parent"
37            android:layout_marginRight="@dimen/preference_screen_side_margin_negative"
38            android:layout_marginLeft="@dimen/preference_screen_side_margin"
39            android:layout_marginTop="32dp"
40            android:layout_marginBottom="32dp"
41            android:layout_weight="10">
42
43            <ListView android:id="@android:id/list"
44                android:layout_width="match_parent"
45                android:layout_height="0px"
46                android:layout_weight="1"
47                android:drawSelectorOnTop="false"
48                android:cacheColorHint="@android:color/transparent"
49                android:listPreferredItemHeight="48dp"
50                android:scrollbarAlwaysDrawVerticalTrack="true" />
51
52            <FrameLayout android:id="@+id/list_footer"
53                    android:layout_width="match_parent"
54                    android:layout_height="wrap_content"
55                    android:layout_weight="0" />
56
57        </LinearLayout>
58
59        <LinearLayout
60                android:id="@+id/prefs_frame"
61                android:layout_width="0px"
62                android:layout_height="match_parent"
63                android:layout_weight="20"
64                android:layout_marginLeft="@dimen/preference_screen_side_margin"
65                android:layout_marginRight="@dimen/preference_screen_side_margin"
66                android:layout_marginTop="16dp"
67                android:layout_marginBottom="16dp"
68                android:background="?attr/preferencePanelBackground"
69                android:orientation="vertical"
70                android:visibility="gone" >
71
72            <!-- Breadcrumb inserted here -->
73            <android.app.FragmentBreadCrumbs
74                android:id="@android:id/title"
75                android:layout_height="72dip"
76                android:layout_width="match_parent"
77                android:paddingTop="16dip"
78                android:paddingBottom="8dip"
79                android:gravity="center_vertical|left"
80                android:layout_marginLeft="48dip"
81                android:layout_marginRight="48dip"
82                />
83
84            <ImageView
85                    android:layout_width="match_parent"
86                    android:layout_height="1dip"
87                    android:paddingLeft="32dip"
88                    android:paddingRight="32dip"
89                    android:src="#404040"
90                />
91            <android.preference.PreferenceFrameLayout android:id="@+id/prefs"
92                    android:layout_width="match_parent"
93                    android:layout_height="0dip"
94                    android:layout_weight="1"
95                    android:layout_marginTop="-1dip"
96                />
97        </LinearLayout>
98    </LinearLayout>
99
100    <RelativeLayout android:id="@+id/button_bar"
101        android:layout_height="wrap_content"
102        android:layout_width="match_parent"
103        android:layout_weight="0"
104        android:background="@android:drawable/bottom_bar"
105        android:visibility="gone">
106
107        <Button android:id="@+id/back_button"
108            android:layout_width="150dip"
109            android:layout_height="wrap_content"
110            android:layout_margin="5dip"
111            android:layout_alignParentLeft="true"
112            android:drawableLeft="@drawable/ic_btn_back"
113            android:drawablePadding="3dip"
114            android:text="@string/back_button_label"
115        />
116        <LinearLayout
117            android:orientation="horizontal"
118            android:layout_width="wrap_content"
119            android:layout_height="wrap_content"
120            android:layout_alignParentRight="true">
121
122            <Button android:id="@+id/skip_button"
123                android:layout_width="150dip"
124                android:layout_height="wrap_content"
125                android:layout_margin="5dip"
126                android:text="@string/skip_button_label"
127                android:visibility="gone"
128            />
129
130            <Button android:id="@+id/next_button"
131                android:layout_width="150dip"
132                android:layout_height="wrap_content"
133                android:layout_margin="5dip"
134                android:drawableRight="@drawable/ic_btn_next"
135                android:drawablePadding="3dip"
136                android:text="@string/next_button_label"
137            />
138        </LinearLayout>
139    </RelativeLayout>
140</LinearLayout>
141