Download this file

activity_main.xml    45 lines (39 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@id/android:list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:ignore="MergeRootFrame"
tools:context=".MainActivity">
<include layout="@layout/voice_btn_layout"
android:visibility="visible"/>
<ImageView
android:id="@+id/alarm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="250dp"
android:layout_centerInParent="true"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:src="@drawable/alarm" />
<TextView
android:id="@+id/alarm_txt"
android:padding="30dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="30sp"
android:layout_centerHorizontal="true"
android:layout_below="@id/alarm"
android:text=""/>
<Button
android:layout_width="60dp"
android:layout_height="60dp"
android:padding="10dp"
android:layout_centerHorizontal="true"
android:layout_below="@id/alarm_txt"
android:background="@drawable/alarm_off"
android:onClick="onEndAlarm"
/>
</RelativeLayout>