summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-09-23 16:19:22 -0400
committerLeon Scroggins <scroggo@google.com>2009-09-23 16:24:27 -0400
commitf71f9fbcd26c7b7d848c1a0e71171390e935fbc7 (patch)
tree5040e0e9d098ab2a57754c547f7e1f34b9ecfd3c /res/drawable
parent06ec5f2d8735d1ba17b779deb0f8da032e0a62ea (diff)
downloadpackages_apps_Browser-f71f9fbcd26c7b7d848c1a0e71171390e935fbc7.zip
packages_apps_Browser-f71f9fbcd26c7b7d848c1a0e71171390e935fbc7.tar.gz
packages_apps_Browser-f71f9fbcd26c7b7d848c1a0e71171390e935fbc7.tar.bz2
Draw pressed states on the fake title bar.
Use custom selectors for the title bar and its button. Fixes http://b/issue?id=2127259 Change-Id: I19a7912f6edc0b7ef46907d25907dc3f5a65efd7
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/btn_bookmark.xml24
-rw-r--r--res/drawable/title_text.xml24
2 files changed, 48 insertions, 0 deletions
diff --git a/res/drawable/btn_bookmark.xml b/res/drawable/btn_bookmark.xml
new file mode 100644
index 0000000..ce169d0
--- /dev/null
+++ b/res/drawable/btn_bookmark.xml
@@ -0,0 +1,24 @@
+<?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.
+-->
+
+<!-- Custom layout file which mimics the btn_search_dialog_voice look, but draws
+ the pressed state even without window focus -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true"
+ android:drawable="@*android:drawable/btn_search_dialog_voice_pressed" />
+ <item android:state_pressed="false"
+ android:drawable="@*android:drawable/btn_search_dialog_voice_default" />
+</selector>
diff --git a/res/drawable/title_text.xml b/res/drawable/title_text.xml
new file mode 100644
index 0000000..6a214d9
--- /dev/null
+++ b/res/drawable/title_text.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2007 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.
+-->
+
+<!-- Custom layout file which mimics the standard edit_text look, but draws the
+ pressed state even without window focus -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true"
+ android:drawable="@*android:drawable/textfield_pressed" />
+ <item android:state_pressed="false"
+ android:drawable="@*android:drawable/textfield_default" />
+</selector>