Added a sleep timer
This commit is contained in:
parent
b5f160dd89
commit
4d82b91465
25 changed files with 350 additions and 47 deletions
29
app/src/main/res/layout/dialog_sleep_timer.xml
Normal file
29
app/src/main/res/layout/dialog_sleep_timer.xml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:seekarc="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.triggertrap.seekarc.SeekArc
|
||||
android:id="@+id/seek_arc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:padding="30dp"
|
||||
seekarc:clockwise="false"
|
||||
seekarc:max="120"
|
||||
seekarc:progressColor="?colorAccent"
|
||||
seekarc:rotation="180"
|
||||
seekarc:startAngle="30"
|
||||
seekarc:sweepAngle="300"
|
||||
seekarc:thumb="?seek_arc_thumb_drawable" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/timer_display"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:textAppearance="?android:textAppearanceLarge" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue