linear_layout_listview_height.xml revision 1d3165f10b12165f02b7015ac1a817c5f60e6399
1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** 5** Copyright 2008, 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:id="@+id/layout" 22 android:orientation="vertical" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent"> 25 26 <!-- Outer linear layout providing vertical layout --> 27 <LinearLayout 28 android:orientation="vertical" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" > 31 32 <!-- The control buttons --> 33 <LinearLayout 34 android:orientation="horizontal" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" > 37 38 <Button 39 android:id="@+id/button1" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:text="@string/linear_listheight_fixed"/> 43 44 <Button 45 android:id="@+id/button2" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:text="@string/linear_listheight_fill"/> 49 50 <Button 51 android:id="@+id/button3" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:text="@string/linear_listheight_hide"/> 55 </LinearLayout> 56 57 <!-- The list view --> 58 <ListView 59 android:id="@+id/inner_list" 60 android:layout_width="200dip" 61 android:layout_height="match_parent" 62 android:background="@android:drawable/spinner_dropdown_background" 63 android:divider="@android:drawable/divider_horizontal_bright" /> 64 65 </LinearLayout> 66</LinearLayout> 67