Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: chrome/android/java/res/layout/title_button_menu_item.xml

Issue 2951133003: Clean up tinted ImageView subclasses (Closed)
Patch Set: Comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
8 <!-- Represents a menu item that can display any of the following options:
9 * A text label
10 * A text label with a checkbox indicating that it is enabled or disabled
11 * A text label with an icon
12 -->
7 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 13 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto" 14 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:layout_width="match_parent" 15 android:layout_width="match_parent"
10 android:layout_height="?android:attr/listPreferredItemHeightSmall"> 16 android:layout_height="?android:attr/listPreferredItemHeightSmall">
11 <TextView 17 <TextView
12 android:id="@+id/title" 18 android:id="@+id/title"
13 android:layout_width="0dp" 19 android:layout_width="0dp"
14 android:layout_height="match_parent" 20 android:layout_height="match_parent"
15 android:layout_gravity="start" 21 android:layout_gravity="start"
16 android:layout_weight="1" 22 android:layout_weight="1"
17 android:background="?attr/listChoiceBackgroundIndicator" 23 android:background="?attr/listChoiceBackgroundIndicator"
18 android:gravity="center_vertical" 24 android:gravity="center_vertical"
19 android:paddingStart="16dp" 25 android:paddingStart="16dp"
20 android:paddingEnd="9dp" 26 android:paddingEnd="9dp"
21 android:singleLine="true" 27 android:singleLine="true"
22 android:textAppearance="?android:attr/textAppearanceLargePopupMenu" /> 28 android:textAppearance="?android:attr/textAppearanceLargePopupMenu" />
23 29
30 <!-- Checkbox. Paddings account for built-in padding from the Android resou rce. -->
31 <org.chromium.chrome.browser.appmenu.AppMenuItemIcon
32 android:id="@+id/checkbox"
33 android:layout_width="56dp"
34 android:layout_height="match_parent"
35 android:background="?attr/listChoiceBackgroundIndicator"
36 android:paddingStart="12dp"
37 android:paddingEnd="12dp"
38 android:paddingTop="8dp"
39 android:paddingBottom="8dp"
40 android:scaleType="fitCenter"
41 android:src="?android:attr/listChoiceIndicatorMultiple"
42 chrome:chrometint="@null" />
43
44 <!-- Displays an icon. -->
24 <org.chromium.chrome.browser.widget.TintedImageButton 45 <org.chromium.chrome.browser.widget.TintedImageButton
25 android:id="@+id/button" 46 android:id="@+id/button"
26 android:layout_width="56dp" 47 android:layout_width="56dp"
27 android:layout_height="match_parent" 48 android:layout_height="match_parent"
28 android:background="?attr/listChoiceBackgroundIndicator" 49 android:background="?attr/listChoiceBackgroundIndicator"
29 android:paddingStart="16dp" 50 android:paddingStart="16dp"
30 android:paddingEnd="16dp" 51 android:paddingEnd="16dp"
31 android:paddingTop="12dp" 52 android:paddingTop="12dp"
32 android:paddingBottom="12dp" 53 android:paddingBottom="12dp"
33 android:scaleType="fitCenter" 54 android:scaleType="fitCenter"
34 chrome:chrometint="@null" /> 55 chrome:chrometint="@null" />
35 </LinearLayout> 56 </LinearLayout>
OLDNEW
« no previous file with comments | « chrome/android/java/res/layout/menu_item.xml ('k') | chrome/android/java/res/layout/update_menu_item.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698