[052f39]: / app / src / main / res / layout / activity_main.xml

Download this file

96 lines (84 with data), 3.4 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20dp"
android:textStyle="bold"
android:text="@string/mole_header"/>
<ImageView
android:id="@+id/capturedImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:src="@drawable/scanmole"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="0.9">
<Button
android:id="@+id/choosePicture"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginEnd="16dp"
android:layout_weight="0.4"
android:text="@string/button_choose"
android:backgroundTint="@color/black"
android:textAllCaps="false" />
<Button
android:id="@+id/Run"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="0.4"
android:backgroundTint="@color/red"
android:text="@string/button_run"
android:textAllCaps="false" />
</LinearLayout>
<TextView
android:id="@+id/textHeader"
android:layout_marginTop="30dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20dp"
android:textStyle="bold"
android:visibility="invisible"
android:text="@string/result_header"/>
<TextView
android:id="@+id/resultText"
android:text="@string/mlkit_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:layout_weight="1"
android:lineSpacingExtra="3dp"
android:textSize="16sp" />
<TextView
android:id="@+id/infoText"
android:text="@string/info_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:layout_weight="1"
android:gravity="center"
android:textStyle="bold"
android:textColor="@color/red"
android:lineSpacingExtra="3dp"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>