62 lines
2.2 KiB
XML
62 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.v7.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/cardview_margin"
|
|
android:layout_marginTop="@dimen/cardview_margin"
|
|
android:layout_marginEnd="@dimen/cardview_margin">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/label"
|
|
style="@style/TimerLabel"/>
|
|
|
|
<com.philliphsu.clock2.timers.CountdownChronometer
|
|
android:id="@+id/duration"
|
|
android:layout_below="@id/label"
|
|
style="@style/TimerCountdown"/>
|
|
|
|
<!--The default style has padding start and end, so we remove both-->
|
|
<com.philliphsu.clock2.UntouchableSeekBar
|
|
android:id="@+id/seek_bar"
|
|
android:layout_below="@id/duration"
|
|
style="@style/TimerSeekBar"/>
|
|
|
|
<!-- Fake icon, so use dp for textSize -->
|
|
<TextView
|
|
android:id="@+id/add_one_minute"
|
|
android:layout_below="@id/seek_bar"
|
|
android:layout_alignParentStart="true"
|
|
style="@style/TimerAction.AddOneMinute"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/start_pause"
|
|
android:src="@drawable/ic_start_24dp"
|
|
android:layout_below="@id/seek_bar"
|
|
android:layout_centerHorizontal="true"
|
|
style="@style/TimerAction"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/stop"
|
|
android:src="@drawable/ic_stop_24dp"
|
|
android:layout_below="@id/seek_bar"
|
|
android:layout_alignParentEnd="true"
|
|
style="@style/TimerAction"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/menu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_overflow_24dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginTop="@dimen/cardview_action_icon_margin"
|
|
style="@style/TimerAction"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</android.support.v7.widget.CardView> |