Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / list_menu_item_layout.xml
blobe8d4983416a5d14f7a97099f7d3147b5fc9216ea
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2007 The Android Open Source Project
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 -->
17 <com.android.internal.view.menu.ListMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
18     android:layout_width="match_parent"
19     android:layout_height="?android:attr/listPreferredItemHeightSmall">
20     
21     <!-- Icon will be inserted here. -->
22     
23     <!-- The title and summary have some gap between them, and this 'group' should be centered vertically. -->
24     <RelativeLayout
25         android:layout_width="0dip"
26         android:layout_weight="1"
27         android:layout_height="wrap_content"
28         android:layout_gravity="center_vertical"
29         android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
30         android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
31         android:duplicateParentState="true">
32         
33         <TextView 
34             android:id="@+id/title"
35             android:layout_width="match_parent"
36             android:layout_height="wrap_content"
37             android:layout_alignParentTop="true"
38             android:layout_alignParentStart="true"
39             android:textAppearance="?android:attr/textAppearanceListItemSmall"
40             android:singleLine="true"
41             android:duplicateParentState="true"
42             android:ellipsize="marquee"
43             android:fadingEdge="horizontal"
44             android:textAlignment="viewStart" />
46         <TextView
47             android:id="@+id/shortcut"
48             android:layout_width="wrap_content"
49             android:layout_height="wrap_content"
50             android:layout_below="@id/title"
51             android:layout_alignParentStart="true"
52             android:textAppearance="?android:attr/textAppearanceSmall"
53             android:singleLine="true"
54             android:duplicateParentState="true"
55             android:textAlignment="viewStart" />
57     </RelativeLayout>
59     <!-- Checkbox, and/or radio button will be inserted here. -->
60     
61 </com.android.internal.view.menu.ListMenuItemView>