blob: 639a27af3d3b43aedda67c7194655b85df2d99c2 (
plain)
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
|
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<EditText
android:id="@+id/et_note_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Note"
android:minLines="3"
android:gravity="top|start"
android:inputType="textMultiLine"
android:padding="8dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="12dp">
<Button
android:id="@+id/btn_note_camera"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Camera"
android:layout_marginEnd="4dp" />
<Button
android:id="@+id/btn_note_gallery"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Gallery"
android:layout_marginStart="4dp" />
</LinearLayout>
<FrameLayout
android:id="@+id/frame_note_photo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:visibility="gone">
<ImageView
android:id="@+id/iv_note_photo"
android:layout_width="match_parent"
android:layout_height="120dp"
android:scaleType="centerCrop"
android:contentDescription="Selected photo" />
<Button
android:id="@+id/btn_note_remove_photo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|end"
android:layout_margin="4dp"
android:text="✕"
android:textSize="10sp"
android:paddingHorizontal="6dp"
android:paddingVertical="2dp" />
</FrameLayout>
</LinearLayout>
|