summaryrefslogtreecommitdiffstats
path: root/core/res/res/color
diff options
context:
space:
mode:
authorSatish Sampath <satish@android.com>2009-07-09 16:37:48 +0100
committerSatish Sampath <satish@android.com>2009-07-09 16:48:16 +0100
commit313ea433d18e7fd5438b94c0606c496fcc7a2f88 (patch)
treed58ab2e1770a9fbd2963c67c732d258ef0491b1f /core/res/res/color
parent3893da46f0a97d59a7687ae2bd71ba855eb5ffe3 (diff)
downloadframeworks_base-313ea433d18e7fd5438b94c0606c496fcc7a2f88.zip
frameworks_base-313ea433d18e7fd5438b94c0606c496fcc7a2f88.tar.gz
frameworks_base-313ea433d18e7fd5438b94c0606c496fcc7a2f88.tar.bz2
Make suggestion text color change based on the item state.
We support a ColorStateList reference now as a valid font color value in the given html and manage html strings for all supported states which we dynamically set while drawing the items. This will get checked in along with changes to GlobalSearch, EnhancedGoogleSearchProvider and Browser to make them use the new model. Bug: http://b/issue?id=1865037
Diffstat (limited to 'core/res/res/color')
-rw-r--r--core/res/res/color/search_url_text.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/res/res/color/search_url_text.xml b/core/res/res/color/search_url_text.xml
new file mode 100644
index 0000000..449fdf0
--- /dev/null
+++ b/core/res/res/color/search_url_text.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 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.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true" android:color="@android:color/search_url_text_pressed"/>
+ <item android:state_selected="true" android:color="@android:color/search_url_text_selected"/>
+ <item android:color="@android:color/search_url_text_normal"/> <!-- not selected -->
+</selector>