diff options
author | John Reck <jreck@google.com> | 2011-01-17 13:08:30 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-01-18 11:22:24 -0800 |
commit | dd7d751f480a8554e5b318adaa866517453f3fce (patch) | |
tree | 03b326c3668263b538ffc9323d8081c4f81ef9a2 | |
parent | 38bbd67197a7e80775945a8ce0658af6dd0628a2 (diff) | |
download | packages_apps_Browser-dd7d751f480a8554e5b318adaa866517453f3fce.zip packages_apps_Browser-dd7d751f480a8554e5b318adaa866517453f3fce.tar.gz packages_apps_Browser-dd7d751f480a8554e5b318adaa866517453f3fce.tar.bz2 |
Omnibox tweaks
Bug: 3345000
Move nav suggest after all local results including history and changed
second line to a slight green color
Change-Id: Ia9f8376633b666dc8706a0ea125a999066fa60a0
-rw-r--r-- | res/layout/suggestion_item.xml | 3 | ||||
-rw-r--r-- | res/values/colors.xml | 1 | ||||
-rw-r--r-- | src/com/android/browser/SuggestionsAdapter.java | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/res/layout/suggestion_item.xml b/res/layout/suggestion_item.xml index ab87dd4..d3a2404 100644 --- a/res/layout/suggestion_item.xml +++ b/res/layout/suggestion_item.xml @@ -57,7 +57,8 @@ style="@style/SuggestionLineSmall" android:singleLine="true" android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" + android:textColor="@color/urlTextColor" /> </LinearLayout> </LinearLayout> <ImageView diff --git a/res/values/colors.xml b/res/values/colors.xml index 835f3ba..84e5348 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -33,4 +33,5 @@ <color name="qc_slice_active">#E02090FF</color> <color name="bookmarkWidgetFaviconBackground">#23ffffff</color> <color name="bookmarkListFaviconBackground">#23ffffff</color> + <color name="urlTextColor">#0E774A</color> </resources> diff --git a/src/com/android/browser/SuggestionsAdapter.java b/src/com/android/browser/SuggestionsAdapter.java index abf9088..c2e203a 100644 --- a/src/com/android/browser/SuggestionsAdapter.java +++ b/src/com/android/browser/SuggestionsAdapter.java @@ -45,8 +45,8 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable, OnClickListener { static final int TYPE_BOOKMARK = 0; - static final int TYPE_SUGGEST_URL = 1; - static final int TYPE_HISTORY = 2; + static final int TYPE_HISTORY = 1; + static final int TYPE_SUGGEST_URL = 2; static final int TYPE_SEARCH = 3; static final int TYPE_SUGGEST = 4; static final int TYPE_VOICE_SEARCH = 5; |