summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2010-11-30 17:41:57 -0800
committerJohn Reck <jreck@google.com>2010-11-30 17:44:01 -0800
commit93aa074eb80dd6785d379a2b6c162f8619ee50d0 (patch)
tree8b6daf88feff9b07a4eb4dbc22e863d5b57a6d56 /res
parent7a5cf4714453bd982afc662f373d0c38cddfb023 (diff)
downloadpackages_apps_browser-93aa074eb80dd6785d379a2b6c162f8619ee50d0.zip
packages_apps_browser-93aa074eb80dd6785d379a2b6c162f8619ee50d0.tar.gz
packages_apps_browser-93aa074eb80dd6785d379a2b6c162f8619ee50d0.tar.bz2
Fixes bookmark scrolling highlight
Bug: 3225547 Fixes the issue where the pressed indicator would scroll with the page and persisted after the user lifted their finger. Change-Id: I36d1d9ab2ad5d30cde3312e03c66b56378ae7d68
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/frame_bookmark_thumb_pressed.9.pngbin0 -> 783 bytes
-rwxr-xr-xres/drawable-mdpi/frame_bookmark_thumb_pressed.9.pngbin0 -> 621 bytes
-rw-r--r--res/drawable/bookmark_thumb_selector.xml21
-rw-r--r--res/layout/bookmarks.xml2
4 files changed, 22 insertions, 1 deletions
diff --git a/res/drawable-hdpi/frame_bookmark_thumb_pressed.9.png b/res/drawable-hdpi/frame_bookmark_thumb_pressed.9.png
new file mode 100644
index 0000000..95f3ab5
--- /dev/null
+++ b/res/drawable-hdpi/frame_bookmark_thumb_pressed.9.png
Binary files differ
diff --git a/res/drawable-mdpi/frame_bookmark_thumb_pressed.9.png b/res/drawable-mdpi/frame_bookmark_thumb_pressed.9.png
new file mode 100755
index 0000000..8bae932
--- /dev/null
+++ b/res/drawable-mdpi/frame_bookmark_thumb_pressed.9.png
Binary files differ
diff --git a/res/drawable/bookmark_thumb_selector.xml b/res/drawable/bookmark_thumb_selector.xml
new file mode 100644
index 0000000..5219d90
--- /dev/null
+++ b/res/drawable/bookmark_thumb_selector.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 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.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true" android:drawable="@drawable/frame_bookmark_thumb_pressed" />
+ <item android:drawable="@android:color/transparent" />
+</selector>
+
diff --git a/res/layout/bookmarks.xml b/res/layout/bookmarks.xml
index 7a0aa23..28f83e4 100644
--- a/res/layout/bookmarks.xml
+++ b/res/layout/bookmarks.xml
@@ -37,7 +37,7 @@
android:verticalSpacing="16dip"
android:stretchMode="spacingWidth"
android:scrollbarStyle="insideInset"
- android:listSelector="@android:drawable/gallery_thumb"
+ android:listSelector="@drawable/bookmark_thumb_selector"
android:drawSelectorOnTop="true"
android:focusable="true"
android:focusableInTouchMode="true"