Merge "SeekBar track and progress should both be 2dp"
This commit is contained in:
committed by
Android (Google) Code Review
commit
044e9f992f
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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. -->
|
||||
|
||||
@@ -719,9 +719,9 @@ please see styles_device_defaults.xml.
|
||||
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user