• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2     Copyright (C) 2012 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_width="match_parent"
18    android:layout_height="wrap_content"
19    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
20    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
21    android:clickable="true"
22    android:focusable="true"
23    android:orientation="horizontal"
24    android:background="?android:attr/selectableItemBackground" >
25
26    <!-- Dream icon -->
27
28    <ImageView
29        android:id="@android:id/icon"
30        android:layout_width="@android:dimen/app_icon_size"
31        android:layout_height="@android:dimen/app_icon_size"
32        android:layout_centerVertical="true"
33        android:layout_marginBottom="10dp"
34        android:layout_marginStart="0dp"
35        android:layout_marginEnd="6dp"
36        android:layout_marginTop="10dp"
37        android:contentDescription="@null"
38        android:maxHeight="@android:dimen/app_icon_size"
39        android:maxWidth="@android:dimen/app_icon_size"
40        android:scaleType="fitCenter" />
41
42    <!-- Dream caption -->
43
44    <TextView
45        android:id="@android:id/title"
46        android:layout_width="wrap_content"
47        android:layout_height="match_parent"
48        android:layout_weight="1"
49        android:layout_centerVertical="true"
50        android:ellipsize="end"
51        android:singleLine="true"
52        android:gravity="center_vertical"
53        android:textAppearance="?android:attr/textAppearanceMedium"
54        android:textAlignment="viewStart"
55        android:labelFor="@android:id/button2" />
56
57    <!-- Dream radio button -->
58
59    <RadioButton
60        android:id="@android:id/button1"
61        android:layout_width="wrap_content"
62        android:layout_height="match_parent"
63        android:layout_alignParentEnd="true"
64        android:layout_centerVertical="true"
65        android:duplicateParentState="true"
66        android:clickable="false"
67        android:focusable="false" />
68
69    <!-- Divider -->
70
71    <ImageView
72        android:id="@+id/divider"
73        android:layout_width="wrap_content"
74        android:layout_height="match_parent"
75        android:layout_centerVertical="true"
76        android:contentDescription="@null"
77        android:src="@drawable/nav_divider" />
78
79    <!-- Settings icon -->
80
81    <ImageView
82        android:id="@android:id/button2"
83        android:layout_width="wrap_content"
84        android:layout_height="match_parent"
85        android:layout_centerVertical="true"
86        android:layout_margin="0dip"
87        android:background="?android:attr/selectableItemBackground"
88        android:contentDescription="@string/screensaver_settings_button"
89        android:padding="8dip"
90        android:clickable="true"
91        android:focusable="true"
92        android:src="@drawable/ic_settings" />
93
94</LinearLayout>
95