Index: chrome/android/java/res/layout/four_button_menu_item.xml |
diff --git a/chrome/android/java/res/layout/four_button_menu_item.xml b/chrome/android/java/res/layout/four_button_menu_item.xml |
index 1e47144771d799245711f28e894a50aec9315798..1ea1c89dff4684a34b17f4c680224272468a769a 100644 |
--- a/chrome/android/java/res/layout/four_button_menu_item.xml |
+++ b/chrome/android/java/res/layout/four_button_menu_item.xml |
@@ -12,48 +12,47 @@ |
<ImageButton |
android:id="@+id/button_one" |
- android:layout_width="wrap_content" |
- android:layout_height="match_parent" |
- android:layout_weight="1" |
+ 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.
|
+ 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
|
android:background="?android:attr/listChoiceBackgroundIndicator" |
android:scaleType="center" /> |
<View |
- android:layout_width="1dp" |
+ android:layout_width="0dp" |
android:layout_height="?android:attr/listPreferredItemHeightSmall" |
- android:background="?android:attr/listDivider" /> |
+ android:layout_weight="1" |
+ android:background="@null" /> |
<ImageButton |
android:id="@+id/button_two" |
- android:layout_width="wrap_content" |
- android:layout_height="match_parent" |
- android:layout_weight="1" |
+ android:layout_width="48dp" |
+ android:layout_height="?android:attr/listPreferredItemHeightSmall" |
android:background="?android:attr/listChoiceBackgroundIndicator" |
android:scaleType="center" /> |
<View |
- android:layout_width="1dp" |
+ android:layout_width="0dp" |
android:layout_height="?android:attr/listPreferredItemHeightSmall" |
- android:background="?android:attr/listDivider" /> |
+ android:layout_weight="1" |
+ android:background="@null" /> |
<ImageButton |
android:id="@+id/button_three" |
- android:layout_width="wrap_content" |
- android:layout_height="match_parent" |
- android:layout_weight="1" |
+ android:layout_width="48dp" |
+ android:layout_height="?android:attr/listPreferredItemHeightSmall" |
android:background="?android:attr/listChoiceBackgroundIndicator" |
android:scaleType="center" /> |
<View |
- android:layout_width="1dp" |
+ android:layout_width="0dp" |
android:layout_height="?android:attr/listPreferredItemHeightSmall" |
- android:background="?android:attr/listDivider" /> |
+ android:layout_weight="1" |
+ android:background="@null" /> |
<ImageButton |
android:id="@+id/button_four" |
- android:layout_width="wrap_content" |
- android:layout_height="match_parent" |
- android:layout_weight="1" |
+ android:layout_width="48dp" |
+ android:layout_height="?android:attr/listPreferredItemHeightSmall" |
android:background="?android:attr/listChoiceBackgroundIndicator" |
android:scaleType="center" /> |