Index: ui/android/java/src/org/chromium/ui/DropdownAdapter.java |
diff --git a/ui/android/java/src/org/chromium/ui/DropdownAdapter.java b/ui/android/java/src/org/chromium/ui/DropdownAdapter.java |
index ecad3cea4f588945da019472d7768c4ad1df0f31..ec3505f48c6cf73cc9930993184030fe16dc0f4d 100644 |
--- a/ui/android/java/src/org/chromium/ui/DropdownAdapter.java |
+++ b/ui/android/java/src/org/chromium/ui/DropdownAdapter.java |
@@ -8,6 +8,7 @@ import android.content.Context; |
import android.graphics.Color; |
import android.graphics.Typeface; |
import android.text.TextUtils; |
+import android.util.TypedValue; |
import android.view.LayoutInflater; |
import android.view.View; |
import android.view.ViewGroup; |
@@ -99,6 +100,11 @@ public class DropdownAdapter extends ArrayAdapter<DropdownItem> { |
labelView.setTypeface(null, Typeface.NORMAL); |
} |
+ labelView.setTextColor(ApiCompatibilityUtils.getColor( |
+ mContext.getResources(), item.getLabelFontColorResId())); |
+ labelView.setTextSize(TypedValue.COMPLEX_UNIT_PX, |
+ mContext.getResources().getDimension(item.getLabelFontSizeResId())); |
+ |
TextView sublabelView = (TextView) layout.findViewById(R.id.dropdown_sublabel); |
CharSequence sublabel = item.getSublabel(); |
if (TextUtils.isEmpty(sublabel)) { |