1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<!-- Copyright (C) 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 |
<android.support.v7.internal.view.menu.ListMenuItemView |
18 |
xmlns:android="http://schemas.android.com/apk/res/android" |
19 |
android:layout_width="match_parent" |
20 |
android:layout_height="?attr/listPreferredItemHeightSmall"> |
21 |
|
22 |
<!-- Icon will be inserted here. --> |
23 |
|
24 |
<!-- The title and summary have some gap between them, and this 'group' should be centered vertically. --> |
25 |
<RelativeLayout |
26 |
android:layout_width="0dip" |
27 |
android:layout_weight="1" |
28 |
android:layout_height="wrap_content" |
29 |
android:layout_gravity="center_vertical" |
30 |
android:layout_marginLeft="?attr/listPreferredItemPaddingLeft" |
31 |
android:layout_marginRight="?attr/listPreferredItemPaddingRight" |
32 |
android:duplicateParentState="true"> |
33 |
|
34 |
<TextView |
35 |
android:id="@+id/title" |
36 |
android:layout_width="match_parent" |
37 |
android:layout_height="wrap_content" |
38 |
android:layout_alignParentTop="true" |
39 |
android:layout_alignParentLeft="true" |
40 |
android:textAppearance="?attr/textAppearanceListItemSmall" |
41 |
android:singleLine="true" |
42 |
android:duplicateParentState="true" |
43 |
android:ellipsize="marquee" |
44 |
android:fadingEdge="horizontal" /> |
45 |
|
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_alignParentLeft="true" |
52 |
android:textAppearance="?android:attr/textAppearanceSmall" |
53 |
android:singleLine="true" |
54 |
android:duplicateParentState="true" /> |
55 |
|
56 |
</RelativeLayout> |
57 |
|
58 |
<!-- Checkbox, and/or radio button will be inserted here. --> |
59 |
|
60 |
</android.support.v7.internal.view.menu.ListMenuItemView> |
61 |
<!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/lmp-mr1-supportlib-release/frameworks/support/v7/appcompat/res/layout/abc_list_menu_item_layout.xml --><!-- From: file:/C:/Users/thn/AndroidStudioProjects/BarcodeSample/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.1.1/res/layout/abc_list_menu_item_layout.xml --> |