diff options
author | nicolasroard <nicolasroard@google.com> | 2013-03-15 18:15:44 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-03-15 19:10:01 -0700 |
commit | 7e54986578fba76e2ad3aa86ef816afad45ea0d8 (patch) | |
tree | fab6b1009cd3d373cf01d4c1a2ecd06d9d2169e9 /res/drawable | |
parent | 856b1d5b519f0bed32f5e95146e306248a18c288 (diff) | |
download | android_packages_apps_Snap-7e54986578fba76e2ad3aa86ef816afad45ea0d8.tar.gz android_packages_apps_Snap-7e54986578fba76e2ad3aa86ef816afad45ea0d8.tar.bz2 android_packages_apps_Snap-7e54986578fba76e2ad3aa86ef816afad45ea0d8.zip |
Add new slider style
Change-Id: I3c749058b6432765b5c8d8d39d26dc4467437ddf
Diffstat (limited to 'res/drawable')
-rw-r--r-- | res/drawable/filtershow_scrubber.xml | 22 | ||||
-rw-r--r-- | res/drawable/filtershow_slider.xml | 28 |
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 |