-
Notifications
You must be signed in to change notification settings - Fork 556
/
fragment_widget_uvc_video.xml
65 lines (60 loc) · 2.5 KB
/
fragment_widget_uvc_video.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
60
61
62
63
64
65
<?xml version="1.0" encoding="utf-8"?>
<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"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@android:color/black"
android:minHeight="85dp">
<TextureView
android:id="@+id/uvc_video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="85dp" />
<LinearLayout
android:id="@+id/widget_button_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="5dp"
android:orientation="horizontal"
android:visibility="gone"
tools:visibility="visible">
<android.support.design.widget.FloatingActionButton
android:id="@+id/uvc_take_picture_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:backgroundTint="@android:color/white"
app:fabSize="normal"
app:elevation="6dp"
app:borderWidth="0dp"
android:layout_margin="5dp"
android:src="@drawable/ic_camera_drawable"
android:text="@string/label_photo" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/uvc_record_video_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:backgroundTint="@android:color/white"
app:fabSize="normal"
app:elevation="6dp"
app:borderWidth="0dp"
android:layout_margin="5dp"
android:src="@drawable/on_off_videocam"
android:text="@string/label_record" />
</LinearLayout>
<me.grantland.widget.AutofitTextView
android:id="@+id/uvc_video_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@android:color/black"
android:gravity="center"
android:singleLine="true"
android:text="@string/error_no_video"
android:textAllCaps="true"
android:textColor="@android:color/white"
android:visibility="visible"
tools:visibility="visible" />
</RelativeLayout>