summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-12-13 16:08:04 -0500
committerLeon Scroggins <scroggo@google.com>2010-12-13 16:08:04 -0500
commit60344deb7cc3de88b2f2da1f58d93b86e5ed2eab (patch)
treec6b792f3a7c92c50db1f4f96b17c435fd3e9d3a7
parent0f868ca036ed6dcd835dfb2d8f8842f344d4f5ff (diff)
downloadframeworks_base-60344deb7cc3de88b2f2da1f58d93b86e5ed2eab.zip
frameworks_base-60344deb7cc3de88b2f2da1f58d93b86e5ed2eab.tar.gz
frameworks_base-60344deb7cc3de88b2f2da1f58d93b86e5ed2eab.tar.bz2
Use black text on white background for dropdowns.
Bug:3249233 Change-Id: I8c400c4ab043409e40a1180d45effd4513d0657c
-rw-r--r--core/java/android/webkit/WebTextView.java2
-rw-r--r--core/res/res/layout/web_text_view_dropdown.xml26
2 files changed, 27 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebTextView.java b/core/java/android/webkit/WebTextView.java
index 18a0bda..d83fc42 100644
--- a/core/java/android/webkit/WebTextView.java
+++ b/core/java/android/webkit/WebTextView.java
@@ -848,7 +848,7 @@ import junit.framework.Assert;
public AutoCompleteAdapter(Context context, ArrayList<String> entries) {
super(context, com.android.internal.R.layout
- .search_dropdown_item_1line, entries);
+ .web_text_view_dropdown, entries);
}
/**
diff --git a/core/res/res/layout/web_text_view_dropdown.xml b/core/res/res/layout/web_text_view_dropdown.xml
new file mode 100644
index 0000000..1dce5cb
--- /dev/null
+++ b/core/res/res/layout/web_text_view_dropdown.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 2010, The Android Open Source Project
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@android:id/text1"
+ style="?android:attr/dropDownItemStyle"
+ android:textAppearance="?android:attr/textAppearanceSearchResultTitle"
+ android:textColor="#ff000000"
+ android:background="#ffffffff"
+ android:singleLine="true"
+ android:layout_width="match_parent"
+ android:layout_height="?android:attr/searchResultListItemHeight" />