OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. |
3 | 3 |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 7 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
8 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
9 android:layout_height="?android:attr/listPreferredItemHeightSmall" | 9 android:layout_height="?android:attr/listPreferredItemHeightSmall"> |
10 android:background="?android:attr/selectableItemBackground" > | |
11 | 10 |
12 <Button | 11 <Button |
13 android:id="@+id/title" | 12 android:id="@+id/title" |
14 android:layout_width="wrap_content" | 13 android:layout_width="wrap_content" |
15 android:layout_height="?android:attr/listPreferredItemHeightSmall" | 14 android:layout_height="?android:attr/listPreferredItemHeightSmall" |
16 android:layout_gravity="start" | 15 android:layout_gravity="start" |
17 android:layout_weight="1" | 16 android:layout_weight="1" |
18 android:background="?android:attr/selectableItemBackground" | 17 android:background="?android:attr/listChoiceBackgroundIndicator" |
19 android:gravity="center_vertical" | 18 android:gravity="center_vertical" |
20 android:paddingEnd="9dp" | 19 android:paddingEnd="9dp" |
21 android:paddingStart="9dp" | 20 android:paddingStart="9dp" |
22 android:singleLine="true" | 21 android:singleLine="true" |
23 android:textAppearance="?android:attr/textAppearanceLargePopupMenu" /> | 22 android:textAppearance="?android:attr/textAppearanceLargePopupMenu" /> |
24 | 23 |
25 <View | 24 <View |
26 android:id="@+id/divider" | 25 android:id="@+id/divider" |
27 android:layout_width="1dp" | 26 android:layout_width="1dp" |
28 android:layout_height="match_parent" | 27 android:layout_height="match_parent" |
29 android:background="?android:attr/listDivider" /> | 28 android:background="?android:attr/listDivider" /> |
30 | 29 |
31 <ImageButton | 30 <ImageButton |
32 android:id="@+id/button" | 31 android:id="@+id/button" |
33 android:layout_width="48dp" | 32 android:layout_width="48dp" |
34 android:layout_height="48dp" | 33 android:layout_height="48dp" |
35 android:background="?android:attr/selectableItemBackground" | 34 android:background="?android:attr/listChoiceBackgroundIndicator" |
36 android:padding="10dp" | 35 android:padding="10dp" |
37 android:scaleType="fitCenter" /> | 36 android:scaleType="fitCenter" /> |
38 | 37 |
39 </LinearLayout> | 38 </LinearLayout> |
OLD | NEW |