OSDN Git Service

initial.
[gokigen/FujiCam.git] / app / src / main / res / layout / fragment_main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:app="http://schemas.android.com/apk/res-auto"
4     xmlns:tools="http://schemas.android.com/tools"
5     android:id="@+id/constraintLayout"
6     android:layout_width="match_parent"
7     android:layout_height="match_parent"
8     tools:context=".MainActivity">
9
10     <TextView
11         android:id="@+id/section_label"
12         android:layout_width="wrap_content"
13         android:layout_height="wrap_content"
14         android:layout_marginStart="@dimen/activity_horizontal_margin"
15         android:layout_marginTop="@dimen/activity_vertical_margin"
16         android:layout_marginEnd="@dimen/activity_horizontal_margin"
17         android:layout_marginBottom="@dimen/activity_vertical_margin"
18         app:layout_constraintLeft_toLeftOf="parent"
19         app:layout_constraintTop_toTopOf="@id/constraintLayout"
20         tools:layout_constraintLeft_creator="1"
21         tools:layout_constraintTop_creator="1" />
22
23     <TextView
24         android:id="@+id/show_information"
25         android:layout_width="wrap_content"
26         android:layout_height="22dp"
27         android:layout_marginStart="8dp"
28         android:layout_marginLeft="8dp"
29         android:layout_marginTop="8dp"
30         android:layout_marginEnd="8dp"
31         android:layout_marginRight="8dp"
32         android:text="@string/blank"
33         app:layout_constraintEnd_toEndOf="parent"
34         app:layout_constraintStart_toStartOf="parent"
35         app:layout_constraintTop_toBottomOf="@id/section_label" />
36
37     <Button
38         android:id="@+id/button1"
39         android:layout_width="wrap_content"
40         android:layout_height="wrap_content"
41         android:layout_marginStart="8dp"
42         android:layout_marginLeft="8dp"
43         android:layout_marginBottom="60dp"
44         android:text="@string/label_button1"
45         app:layout_constraintBottom_toBottomOf="parent"
46         app:layout_constraintStart_toStartOf="parent" />
47
48     <Button
49         android:id="@+id/button2"
50         android:layout_width="wrap_content"
51         android:layout_height="wrap_content"
52         android:layout_marginStart="8dp"
53         android:layout_marginLeft="8dp"
54         android:layout_marginBottom="8dp"
55         android:text="@string/label_button2"
56         app:layout_constraintBottom_toTopOf="@id/button1"
57         app:layout_constraintStart_toStartOf="parent" />
58
59     <Button
60         android:id="@+id/button3"
61         android:layout_width="wrap_content"
62         android:layout_height="wrap_content"
63         android:layout_marginStart="8dp"
64         android:layout_marginLeft="8dp"
65         android:layout_marginBottom="8dp"
66         android:text="@string/label_button3"
67         app:layout_constraintBottom_toTopOf="@id/button2"
68         app:layout_constraintStart_toStartOf="parent" />
69
70     <ImageView
71         android:id="@+id/imageView"
72         android:layout_width="wrap_content"
73         android:layout_height="440dp"
74         android:layout_marginTop="2dp"
75         android:contentDescription="@string/blank"
76         android:scaleType="fitCenter"
77         android:src="@drawable/cameratest"
78         android:visibility="visible"
79         app:layout_constraintBottom_toTopOf="@id/button3"
80         app:layout_constraintEnd_toEndOf="parent"
81         app:layout_constraintStart_toStartOf="parent"
82         app:layout_constraintTop_toBottomOf="@id/show_information" />
83
84     <ImageView
85         android:id="@+id/information-view"
86         android:layout_width="300dp"
87         android:layout_height="150dp"
88         android:layout_marginStart="2dp"
89         android:layout_marginLeft="2dp"
90         android:layout_marginEnd="2dp"
91         android:layout_marginRight="2dp"
92         android:layout_marginBottom="2dp"
93         android:contentDescription="@string/blank"
94         android:scaleType="fitCenter"
95         android:src="@drawable/aoi"
96         android:visibility="visible"
97         app:layout_constraintBottom_toBottomOf="parent"
98         app:layout_constraintEnd_toEndOf="parent"
99         app:layout_constraintStart_toEndOf="@+id/button2"
100         app:layout_constraintTop_toBottomOf="@+id/imageView"
101         app:layout_constraintVertical_bias="0.0" />
102
103 </androidx.constraintlayout.widget.ConstraintLayout>