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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java

Issue 2862273002: [DO NO SUBMIT] Color background of suggestion components for layout visuals. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java
index bbf2c77cb5e52f508ccdf5357587f577ac88e64d..9bdf5e5d855395079378b6cd4e34ed4c107ab290 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java
@@ -163,11 +163,13 @@ class SuggestionView extends ViewGroup {
};
mRefineView.setContentDescription(getContext().getString(
R.string.accessibility_omnibox_btn_refine));
+ mRefineView.setBackgroundColor(Color.argb(50, 0, 0, 255));
// Although this has the same background as the suggestion view, it can not be shared as
// it will result in the state of the drawable being shared and always showing up in the
// refine view.
- mRefineView.setBackground(itemBackground.getConstantState().newDrawable());
+ //mRefineView.setBackground(itemBackground.getConstantState().newDrawable());
+ mRefineView.setBackgroundColor(Color.argb(50, 0, 0, 255));
mRefineView.setId(R.id.refine_view_id);
mRefineView.setClickable(true);
mRefineView.setFocusable(true);
@@ -708,6 +710,7 @@ class SuggestionView extends ViewGroup {
new LayoutParams(LayoutParams.WRAP_CONTENT, mSuggestionHeight));
mTextLine1.setSingleLine();
mTextLine1.setTextColor(getStandardFontColor());
+ mTextLine1.setBackgroundColor(Color.argb(50, 255, 0, 0));
ApiCompatibilityUtils.setTextAlignment(mTextLine1, TEXT_ALIGNMENT_VIEW_START);
addView(mTextLine1);
@@ -725,6 +728,7 @@ class SuggestionView extends ViewGroup {
mAnswerImage.setLayoutParams(new LayoutParams(0, 0));
mAnswerImageMaxSize = 0;
addView(mAnswerImage);
+ setBackgroundColor(Color.GREEN);
}
private void resetTextWidths() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698