Merge "SeekBar track and progress should both be 2dp"
diff --git a/core/res/res/drawable/scrubber_control_selector_material.xml b/core/res/res/color/seekbar_track_progress_material.xml
similarity index 63%
rename from core/res/res/drawable/scrubber_control_selector_material.xml
rename to core/res/res/color/seekbar_track_progress_material.xml
index 9892676..3597c00 100644
--- a/core/res/res/drawable/scrubber_control_selector_material.xml
+++ b/core/res/res/color/seekbar_track_progress_material.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2014 The Android Open Source Project
+<!-- Copyright (C) 2015 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.
@@ -15,12 +15,7 @@
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_enabled="false">
- <bitmap android:src="@drawable/scrubber_control_off_mtrl_alpha"
- android:tint="?attr/colorControlNormal" />
- </item>
- <item>
- <bitmap android:src="@drawable/scrubber_control_on_mtrl_alpha"
- android:tint="?attr/colorControlActivated" />
- </item>
+ <item android:state_enabled="false"
+ android:color="?attr/colorControlNormal" />
+ <item android:color="?attr/colorControlActivated" />
</selector>
diff --git a/core/res/res/drawable/scrubber_control_material_anim.xml b/core/res/res/drawable/seekbar_thumb_material_anim.xml
similarity index 100%
rename from core/res/res/drawable/scrubber_control_material_anim.xml
rename to core/res/res/drawable/seekbar_thumb_material_anim.xml
diff --git a/core/res/res/drawable/scrubber_progress_horizontal_material.xml b/core/res/res/drawable/seekbar_track_material.xml
similarity index 88%
rename from core/res/res/drawable/scrubber_progress_horizontal_material.xml
rename to core/res/res/drawable/seekbar_track_material.xml
index 86a85c3..01eb243 100644
--- a/core/res/res/drawable/scrubber_progress_horizontal_material.xml
+++ b/core/res/res/drawable/seekbar_track_material.xml
@@ -19,7 +19,7 @@
android:gravity="center_vertical|fill_horizontal">
<shape android:shape="rectangle"
android:tint="?attr/colorControlNormal">
- <size android:height="@dimen/scrubber_track_height_material" />
+ <size android:height="@dimen/seekbar_track_background_height_material" />
<solid android:color="@color/white_disabled_material" />
</shape>
</item>
@@ -32,7 +32,7 @@
<item>
<shape android:shape="rectangle"
android:tint="?attr/colorControlActivated">
- <size android:height="@dimen/scrubber_track_height_material" />
+ <size android:height="@dimen/seekbar_track_progress_height_material" />
<solid android:color="@color/white_disabled_material" />
</shape>
</item>
@@ -48,7 +48,7 @@
<item>
<shape android:shape="rectangle"
android:tint="?attr/colorControlActivated">
- <size android:height="@dimen/progress_bar_height_material" />
+ <size android:height="@dimen/seekbar_track_progress_height_material" />
<solid android:color="@color/white" />
</shape>
</item>
diff --git a/core/res/res/values/arrays.xml b/core/res/res/values/arrays.xml
index f6df01f..5bc0e03 100644
--- a/core/res/res/values/arrays.xml
+++ b/core/res/res/values/arrays.xml
@@ -352,9 +352,8 @@
<item>@drawable/ratingbar_small_material</item>
<item>@drawable/ratingbar_indicator_material</item>
<item>@drawable/scrollbar_handle_material</item>
- <item>@drawable/scrubber_control_material_anim</item>
- <item>@drawable/scrubber_control_selector_material</item>
- <item>@drawable/scrubber_progress_horizontal_material</item>
+ <item>@drawable/seekbar_thumb_material_anim</item>
+ <item>@drawable/seekbar_track_material</item>
<item>@drawable/spinner_background_material</item>
<item>@drawable/spinner_textfield_background_material</item>
<item>@drawable/switch_thumb_material_anim</item>
diff --git a/core/res/res/values/dimens_material.xml b/core/res/res/values/dimens_material.xml
index 92d5aa1..b980777 100644
--- a/core/res/res/values/dimens_material.xml
+++ b/core/res/res/values/dimens_material.xml
@@ -118,7 +118,9 @@
<!-- Padding above and below selection dialog lists. -->
<dimen name="dialog_list_padding_vertical_material">8dp</dimen>
- <dimen name="scrubber_track_height_material">2dp</dimen>
+ <dimen name="seekbar_track_background_height_material">2dp</dimen>
+ <dimen name="seekbar_track_progress_height_material">2dp</dimen>
+
<dimen name="progress_bar_height_material">4dp</dimen>
<!-- Material time picker dimensions. -->
diff --git a/core/res/res/values/styles_material.xml b/core/res/res/values/styles_material.xml
index b874f63..29b4ecc7 100644
--- a/core/res/res/values/styles_material.xml
+++ b/core/res/res/values/styles_material.xml
@@ -719,9 +719,9 @@
<style name="Widget.Material.SeekBar">
<item name="indeterminateOnly">false</item>
- <item name="progressDrawable">@drawable/scrubber_progress_horizontal_material</item>
- <item name="indeterminateDrawable">@drawable/scrubber_progress_horizontal_material</item>
- <item name="thumb">@drawable/scrubber_control_material_anim</item>
+ <item name="progressDrawable">@drawable/seekbar_track_material</item>
+ <item name="indeterminateDrawable">@drawable/seekbar_track_material</item>
+ <item name="thumb">@drawable/seekbar_thumb_material_anim</item>
<item name="splitTrack">true</item>
<item name="focusable">true</item>
<item name="paddingStart">16dip</item>