preference_list_content.xml revision 8b2fb60cd49426c77869ddd91cbf4130d337a41c
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="0dp" 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 <android.preference.PreferenceFrameLayout android:id="@+id/prefs" 60 android:layout_width="0px" 61 android:layout_height="match_parent" 62 android:layout_weight="20" 63 android:layout_marginLeft="-4dp" 64 android:layout_marginRight="@dimen/preference_screen_side_margin" 65 android:layout_marginTop="16dp" 66 android:layout_marginBottom="16dp" 67 android:background="?attr/preferencePanelBackground" 68 android:visibility="gone" /> 69 </LinearLayout> 70 71 <RelativeLayout android:id="@+id/button_bar" 72 android:layout_height="wrap_content" 73 android:layout_width="match_parent" 74 android:layout_weight="0" 75 android:background="@android:drawable/bottom_bar" 76 android:visibility="gone"> 77 78 <Button android:id="@+id/back_button" 79 android:layout_width="150dip" 80 android:layout_height="wrap_content" 81 android:layout_margin="5dip" 82 android:layout_alignParentLeft="true" 83 android:drawableLeft="@drawable/ic_btn_back" 84 android:drawablePadding="3dip" 85 android:text="@string/back_button_label" 86 /> 87 <LinearLayout 88 android:orientation="horizontal" 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:layout_alignParentRight="true"> 92 93 <Button android:id="@+id/skip_button" 94 android:layout_width="150dip" 95 android:layout_height="wrap_content" 96 android:layout_margin="5dip" 97 android:text="@string/skip_button_label" 98 android:visibility="gone" 99 /> 100 101 <Button android:id="@+id/next_button" 102 android:layout_width="150dip" 103 android:layout_height="wrap_content" 104 android:layout_margin="5dip" 105 android:drawableRight="@drawable/ic_btn_next" 106 android:drawablePadding="3dip" 107 android:text="@string/next_button_label" 108 /> 109 </LinearLayout> 110 </RelativeLayout> 111</LinearLayout> 112