• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  Copyright 2013 The Android Open Source Project
3
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8      http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15  -->
16
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:tools="http://schemas.android.com/tools"
19    tools:targetApi="HONEYCOMB"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical"
23    android:showDividers="middle"
24    android:divider="?android:dividerHorizontal">
25
26    <TextView style="@style/Widget.DescriptionBar"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:text="@string/intro_message" />
30
31    <!--
32        When a ListView has a choiceMode set, it will allow users to "choose"
33        one or more items. The framework provides default list item layouts
34        that show standard radio buttons or check boxes next to a
35        single line of text:
36
37        android.R.layout.simple_list_item_single_choice and
38        android.R.layout.simple_list_item_multiple_choice.
39
40        In some cases, you may want to customize this layout. When doing so,
41        the root view must implement the Checkable interface.
42
43        Lastly, remember to use padding on your ListViews to adhere to the standard
44        metrics described in the Android Design guidelines. When doing so,
45        you should set the android:scrollbarStyle such that the scrollbar
46        doesn'isn't inset.
47    -->
48    <ListView android:id="@android:id/list"
49        android:layout_width="match_parent"
50        android:layout_height="0dp"
51        android:layout_weight="1"
52        android:paddingLeft="@dimen/page_margin"
53        android:paddingRight="@dimen/page_margin"
54        android:scrollbarStyle="outsideOverlay"
55        android:choiceMode="multipleChoice" />
56</LinearLayout>
57