-
Notifications
You must be signed in to change notification settings - Fork 0
/
activity_week08.xml
59 lines (53 loc) · 1.88 KB
/
activity_week08.xml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="10dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="10dp"
>
<ImageView
android:id="@+id/photopreview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/takephoto"
android:scaleType="fitCenter"
/>
<VideoView
android:id="@+id/videoview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/takephoto"
android:gravity="center"
android:layout_gravity="center"
/>
<Button
android:id="@+id/takephoto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/loadphoto"
android:onClick="onTakePhotoClick"
android:text="Take Photo" />
<Button
android:id="@+id/loadphoto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/loadvideo"
android:onClick="onLoadPhotoClick"
android:text="Load Photo" />
<Button
android:id="@+id/loadvideo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/recordvideo"
android:onClick="onLoadVideoClick"
android:text="Load Video" />
<Button
android:id="@+id/recordvideo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:onClick="onRecordVideoClick"
android:text="Record Video" />
</RelativeLayout>