summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-03-15 18:15:44 -0700
committernicolasroard <nicolasroard@google.com>2013-03-15 19:10:01 -0700
commit473ba67c57720054c6478719bed97ed8c3e87f9a (patch)
tree7ff0ad095f0c6c3afb44567943ff9e30ba5cb8b3 /res/drawable
parent0ca39072098a16da35fbe95f91892eca3d6aa077 (diff)
downloadandroid_packages_apps_Gallery2-473ba67c57720054c6478719bed97ed8c3e87f9a.tar.gz
android_packages_apps_Gallery2-473ba67c57720054c6478719bed97ed8c3e87f9a.tar.bz2
android_packages_apps_Gallery2-473ba67c57720054c6478719bed97ed8c3e87f9a.zip
Add new slider style
Change-Id: I3c749058b6432765b5c8d8d39d26dc4467437ddf
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/filtershow_scrubber.xml22
-rw-r--r--res/drawable/filtershow_slider.xml28
2 files changed, 50 insertions, 0 deletions
diff --git a/res/drawable/filtershow_scrubber.xml b/res/drawable/filtershow_scrubber.xml
new file mode 100644
index 000000000..744d1dad2
--- /dev/null
+++ b/res/drawable/filtershow_scrubber.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013 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_enabled="false" android:drawable="@drawable/filtershow_scrubber_control_disabled" />
+ <item android:state_pressed="true" android:drawable="@drawable/filtershow_scrubber_control_pressed" />
+ <item android:state_selected="true" android:drawable="@drawable/filtershow_scrubber_control_focused" />
+ <item android:drawable="@drawable/filtershow_scrubber_control_normal" />
+</selector> \ No newline at end of file
diff --git a/res/drawable/filtershow_slider.xml b/res/drawable/filtershow_slider.xml
new file mode 100644
index 000000000..23457a6ef
--- /dev/null
+++ b/res/drawable/filtershow_slider.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@android:id/background"
+ android:drawable="@drawable/filtershow_scrubber_track" />
+ <item android:id="@android:id/secondaryProgress">
+ <scale android:scaleWidth="100%"
+ android:drawable="@drawable/filtershow_scrubber_secondary" />
+ </item>
+ <item android:id="@android:id/progress">
+ <scale android:scaleWidth="100%"
+ android:drawable="@drawable/filtershow_scrubber_primary" />
+ </item>
+</layer-list> \ No newline at end of file