Commit e53dbe17 authored by Finnur Thorarinsson's avatar Finnur Thorarinsson Committed by Commit Bot

[Android] PhotoPicker: Rounded edges for the SeekBar.

This changes the SeekBar to have rounded edges.

Screenshot: https://crbug.com/895776#c57
Bug: 895776, 656015
Change-Id: I440a539d9f80af53e672afd65927cff9cf40a13b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2250184
Commit-Queue: Finnur Thorarinsson <finnur@chromium.org>
Reviewed-by: default avatarBoris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#780343}
parent 4d8e685c
...@@ -13,21 +13,28 @@ ...@@ -13,21 +13,28 @@
The buffering progress line (item 2 above) is omitted here, because it is not needed due to the fact The buffering progress line (item 2 above) is omitted here, because it is not needed due to the fact
that the videos are all readily available on disk and don't need to be downloaded. --> that the videos are all readily available on disk and don't need to be downloaded. -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background"> <item android:id="@android:id/background"
<shape android:shape="line"> android:gravity="center_vertical|fill_horizontal">
<stroke <shape android:shape="rectangle">
android:color="@color/modern_grey_500" <corners android:radius="@dimen/photo_picker_seek_bar_edge_radius" />
android:width="@dimen/photo_picker_seek_bar_thickness" /> <size android:height="@dimen/photo_picker_seek_bar_thickness" />
<gradient
android:angle="90"
android:startColor="@color/modern_grey_500"
android:endColor="@color/modern_grey_500" />
</shape> </shape>
</item> </item>
<!-- @android:id/secondaryProgress can also be added, but is not necessary here. --> <item android:id="@android:id/progress"
<item android:id="@android:id/progress"> android:gravity="center_vertical|fill_horizontal">
<clip> <clip>
<shape android:shape="line"> <shape android:shape="rectangle">
<stroke <corners android:radius="@dimen/photo_picker_seek_bar_edge_radius" />
android:color="@color/default_primary_color" <size android:height="@dimen/photo_picker_seek_bar_thickness" />
android:width="@dimen/photo_picker_seek_bar_thickness" /> <gradient
android:angle="90"
android:startColor="@color/default_primary_color"
android:endColor="@color/default_primary_color" />
</shape> </shape>
</clip> </clip>
</item> </item>
......
...@@ -438,6 +438,7 @@ ...@@ -438,6 +438,7 @@
<dimen name="photo_picker_grainy_thumbnail_size">12dp</dimen> <dimen name="photo_picker_grainy_thumbnail_size">12dp</dimen>
<dimen name="photo_picker_play_button_size">84dp</dimen> <dimen name="photo_picker_play_button_size">84dp</dimen>
<dimen name="photo_picker_seek_bar_thickness">4dp</dimen> <dimen name="photo_picker_seek_bar_thickness">4dp</dimen>
<dimen name="photo_picker_seek_bar_edge_radius">2dp</dimen>
<dimen name="photo_picker_seek_bar_thumb_size">12dp</dimen> <dimen name="photo_picker_seek_bar_thumb_size">12dp</dimen>
<dimen name="photo_picker_video_duration_offset">16dp</dimen> <dimen name="photo_picker_video_duration_offset">16dp</dimen>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment