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

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

Issue 377083002: Update menu look and feel on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 <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="wrap_content" 9 android:layout_height="wrap_content"
10 android:layout_gravity="top|start" 10 android:layout_gravity="top|start"
11 android:orientation="horizontal"> 11 android:orientation="horizontal">
12 12
13 <ImageButton 13 <ImageButton
14 android:id="@+id/button_one" 14 android:id="@+id/button_one"
15 android:layout_width="wrap_content" 15 android:layout_width="48dp"
aurimas (slooooooooow) 2014/07/08 23:49:44 Why are you hardcoding the width of the button? Th
David Trainor- moved to gerrit 2014/07/09 00:01:56 Yes it will. Talked to Roma and that's the desire
aurimas (slooooooooow) 2014/07/09 00:14:52 THAT. IS. SO. UGLY.
16 android:layout_height="match_parent" 16 android:layout_height="?android:attr/listPreferredItemHeightSmall"
aurimas (slooooooooow) 2014/07/08 23:49:44 Why is match parent the problem? Just set the pare
David Trainor- moved to gerrit 2014/07/09 00:01:56 Good point! I did try this earlier and IIRC for s
David Trainor- moved to gerrit 2014/07/09 00:15:17 Just tried this again. Didn't work. I'm guessing
17 android:layout_weight="1"
18 android:background="?android:attr/listChoiceBackgroundIndicator" 17 android:background="?android:attr/listChoiceBackgroundIndicator"
19 android:scaleType="center" /> 18 android:scaleType="center" />
20 19
21 <View 20 <View
22 android:layout_width="1dp" 21 android:layout_width="0dp"
23 android:layout_height="?android:attr/listPreferredItemHeightSmall" 22 android:layout_height="?android:attr/listPreferredItemHeightSmall"
24 android:background="?android:attr/listDivider" /> 23 android:layout_weight="1"
24 android:background="@null" />
25 25
26 <ImageButton 26 <ImageButton
27 android:id="@+id/button_two" 27 android:id="@+id/button_two"
28 android:layout_width="wrap_content" 28 android:layout_width="48dp"
29 android:layout_height="match_parent" 29 android:layout_height="?android:attr/listPreferredItemHeightSmall"
30 android:layout_weight="1"
31 android:background="?android:attr/listChoiceBackgroundIndicator" 30 android:background="?android:attr/listChoiceBackgroundIndicator"
32 android:scaleType="center" /> 31 android:scaleType="center" />
33 32
34 <View 33 <View
35 android:layout_width="1dp" 34 android:layout_width="0dp"
36 android:layout_height="?android:attr/listPreferredItemHeightSmall" 35 android:layout_height="?android:attr/listPreferredItemHeightSmall"
37 android:background="?android:attr/listDivider" /> 36 android:layout_weight="1"
37 android:background="@null" />
38 38
39 <ImageButton 39 <ImageButton
40 android:id="@+id/button_three" 40 android:id="@+id/button_three"
41 android:layout_width="wrap_content" 41 android:layout_width="48dp"
42 android:layout_height="match_parent" 42 android:layout_height="?android:attr/listPreferredItemHeightSmall"
43 android:layout_weight="1"
44 android:background="?android:attr/listChoiceBackgroundIndicator" 43 android:background="?android:attr/listChoiceBackgroundIndicator"
45 android:scaleType="center" /> 44 android:scaleType="center" />
46 45
47 <View 46 <View
48 android:layout_width="1dp" 47 android:layout_width="0dp"
49 android:layout_height="?android:attr/listPreferredItemHeightSmall" 48 android:layout_height="?android:attr/listPreferredItemHeightSmall"
50 android:background="?android:attr/listDivider" /> 49 android:layout_weight="1"
50 android:background="@null" />
51 51
52 <ImageButton 52 <ImageButton
53 android:id="@+id/button_four" 53 android:id="@+id/button_four"
54 android:layout_width="wrap_content" 54 android:layout_width="48dp"
55 android:layout_height="match_parent" 55 android:layout_height="?android:attr/listPreferredItemHeightSmall"
56 android:layout_weight="1"
57 android:background="?android:attr/listChoiceBackgroundIndicator" 56 android:background="?android:attr/listChoiceBackgroundIndicator"
58 android:scaleType="center" /> 57 android:scaleType="center" />
59 58
60 </LinearLayout> 59 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698