preference_list_content.xml revision 405c1af75607fafdb1d6faf34e13e032e4934787
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_marginTop="@dimen/preference_screen_top_margin" 31 android:layout_marginBottom="@dimen/preference_screen_bottom_margin" 32 android:layout_weight="1"> 33 34 <LinearLayout 35 android:id="@+id/headers" 36 android:orientation="vertical" 37 android:layout_width="0px" 38 android:layout_height="match_parent" 39 android:layout_marginRight="@dimen/preference_screen_side_margin_negative" 40 android:layout_marginLeft="@dimen/preference_screen_side_margin" 41 android:layout_weight="@integer/preferences_left_pane_weight"> 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:paddingTop="16dp" 48 android:paddingBottom="16dp" 49 android:drawSelectorOnTop="false" 50 android:cacheColorHint="@android:color/transparent" 51 android:listPreferredItemHeight="48dp" 52 android:scrollbarAlwaysDrawVerticalTrack="true" /> 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 android:layout_width="0px" 64 android:layout_height="match_parent" 65 android:layout_weight="@integer/preferences_right_pane_weight" 66 android:layout_marginLeft="@dimen/preference_screen_side_margin" 67 android:layout_marginRight="@dimen/preference_screen_side_margin" 68 android:orientation="vertical" 69 android:visibility="gone" > 70 71 <!-- Breadcrumb inserted here, in certain screen sizes. In others, it will be an 72 empty layout or just padding, and PreferenceActivity will put the breadcrumbs in 73 the action bar. --> 74 <include layout="@layout/breadcrumbs_in_fragment" /> 75 76 <android.preference.PreferenceFrameLayout android:id="@+id/prefs" 77 android:layout_width="match_parent" 78 android:layout_height="0dip" 79 android:layout_weight="1" 80 /> 81 </LinearLayout> 82 </LinearLayout> 83 84 <RelativeLayout android:id="@+id/button_bar" 85 android:layout_height="wrap_content" 86 android:layout_width="match_parent" 87 android:layout_weight="0" 88 android:background="@android:drawable/bottom_bar" 89 android:visibility="gone"> 90 91 <Button android:id="@+id/back_button" 92 android:layout_width="150dip" 93 android:layout_height="wrap_content" 94 android:layout_margin="5dip" 95 android:layout_alignParentLeft="true" 96 android:drawableLeft="@drawable/ic_btn_back" 97 android:drawablePadding="3dip" 98 android:text="@string/back_button_label" 99 /> 100 <LinearLayout 101 android:orientation="horizontal" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:layout_alignParentRight="true"> 105 106 <Button android:id="@+id/skip_button" 107 android:layout_width="150dip" 108 android:layout_height="wrap_content" 109 android:layout_margin="5dip" 110 android:text="@string/skip_button_label" 111 android:visibility="gone" 112 /> 113 114 <Button android:id="@+id/next_button" 115 android:layout_width="150dip" 116 android:layout_height="wrap_content" 117 android:layout_margin="5dip" 118 android:drawableRight="@drawable/ic_btn_next" 119 android:drawablePadding="3dip" 120 android:text="@string/next_button_label" 121 /> 122 </LinearLayout> 123 </RelativeLayout> 124</LinearLayout> 125