-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathsquarecamera__fragment_camera.xml
More file actions
81 lines (69 loc) · 2.95 KB
/
squarecamera__fragment_camera.xml
File metadata and controls
81 lines (69 loc) · 2.95 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<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"
tools:context="com.desmond.squarecamera.CameraFragment">
<com.desmond.squarecamera.SquareCameraPreview
android:id="@+id/camera_preview_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<View
android:id="@+id/cover_top_view"
android:layout_width="match_parent"
android:layout_height="@dimen/squarecamera__cover_start_height"
android:layout_alignTop="@id/camera_preview_view"
android:background="@android:color/black"/>
<View
android:id="@+id/cover_bottom_view"
android:layout_width="match_parent"
android:layout_height="@dimen/squarecamera__cover_start_height"
android:layout_alignBottom="@id/camera_preview_view"
android:background="@android:color/black"/>
<LinearLayout
android:id="@+id/camera_tools_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/camera_preview_view"
android:layout_alignParentBottom="true"
android:padding="10dp"
android:orientation="horizontal"
android:background="@android:color/black"
android:gravity="center">
<ImageView
android:id="@+id/change_camera"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:src="@drawable/squarecamera__camera_drawable"
android:layout_weight="1"/>
<ImageView
android:id="@+id/capture_image_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:src="@drawable/squarecamera__capture_photo_button"
android:layout_weight="1"/>
<LinearLayout
android:id="@+id/flash"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:orientation="horizontal">
<ImageView
android:id="@+id/flash_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/squarecamera__toggle_flash" />
<TextView
android:id="@+id/auto_flash_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_gravity="center_vertical"
android:text="Auto"
android:textColor="@android:color/white"
android:textSize="14sp"/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>