Changed ProgressBar to SeekBar
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginTop="8dp">
|
||||
@@ -29,13 +30,19 @@
|
||||
android:layout_centerHorizontal="true"
|
||||
android:textSize="45sp"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
<!--TODO: Consider removing this bottom margin, because the seekbar
|
||||
is rendering with HUGE top and bottom padding already. -->
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progress_bar"
|
||||
<!-- Cannot be touch controlled -->
|
||||
<!--The default style has padding start and end, so we remove both-->
|
||||
<SeekBar
|
||||
android:id="@+id/seek_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
||||
android:layout_below="@id/duration"/>
|
||||
android:layout_below="@id/duration"
|
||||
android:paddingStart="0dp"
|
||||
android:paddingEnd="0dp"
|
||||
android:splitTrack="false"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/add_one_minute"
|
||||
@@ -43,7 +50,7 @@
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/ic_half_day_1_24dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:layout_below="@id/progress_bar"
|
||||
android:layout_below="@id/seek_bar"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginStart="8dp"/>
|
||||
|
||||
@@ -53,7 +60,7 @@
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/ic_half_day_1_24dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:layout_below="@id/progress_bar"
|
||||
android:layout_below="@id/seek_bar"
|
||||
android:layout_centerHorizontal="true"/>
|
||||
|
||||
<ImageButton
|
||||
@@ -62,7 +69,7 @@
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/ic_half_day_1_24dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:layout_below="@id/progress_bar"
|
||||
android:layout_below="@id/seek_bar"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="8dp"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user