Skip to content

Commit

Permalink
Theme SeekBar to match accent color
Browse files Browse the repository at this point in the history
Signed-off-by: enricocid <enrico2588@gmail.com>
  • Loading branch information
enricocid committed Nov 14, 2018
1 parent db98db3 commit 2f951b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/app/src/main/res/layout/player_seek.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:splitTrack="false" />
android:splitTrack="false"
android:theme="@style/SeekBarStyle" />

<TextView
android:id="@+id/duration"
Expand Down
5 changes: 5 additions & 0 deletions project/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@
</style>

<style name="AlertDialogStyle" parent="Theme.MaterialComponents.Light.Dialog.Alert" />

<style name="SeekBarStyle" parent="Widget.AppCompat.SeekBar">
<item name="android:progressBackgroundTint">?attr/colorAccent</item>
<item name="android:progressTint">?attr/colorAccent</item>
</style>
</resources>

0 comments on commit 2f951b1

Please sign in to comment.