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

Unified Diff: ui/android/java/src/org/chromium/ui/DropdownItemBase.java

Issue 2510283002: Http Bad: Put icon on the left of warning message and make value and label in one line on Android (Closed)
Patch Set: format Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ui/android/java/src/org/chromium/ui/DropdownItemBase.java
diff --git a/ui/android/java/src/org/chromium/ui/DropdownItemBase.java b/ui/android/java/src/org/chromium/ui/DropdownItemBase.java
index c27aafa4af604947fcbb735ac68212488b0ad370..1c61f4649d8d0f978874376528e2cf5e8288a8fd 100644
--- a/ui/android/java/src/org/chromium/ui/DropdownItemBase.java
+++ b/ui/android/java/src/org/chromium/ui/DropdownItemBase.java
@@ -4,6 +4,8 @@
package org.chromium.ui;
+import android.widget.LinearLayout;
+
/**
* Base implementation of DropdownItem which is used to get default settings to
* show the item.
@@ -48,4 +50,14 @@ public class DropdownItemBase implements DropdownItem {
public int getLabelFontSizeResId() {
return R.dimen.dropdown_item_label_font_size;
}
+
+ @Override
+ public int getLabelSublabelOrientation() {
+ return LinearLayout.VERTICAL;
+ }
+
+ @Override
+ public boolean isIconOnLeft() {
+ return false;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698