OSDN Git Service

089483b14f173dae940b98ddbb319a9b586354a2
[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="4dp"
15         android:layout_marginTop="@dimen/activity_vertical_margin"
16         android:layout_marginEnd="4dp"
17         android:layout_marginBottom="4dp"
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="wrap_content"
27         android:layout_marginStart="8dp"
28         android:layout_marginLeft="8dp"
29         android:layout_marginTop="2dp"
30         android:layout_marginEnd="2dp"
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="1dp"
42         android:layout_marginLeft="2dp"
43         android:layout_marginBottom="58dp"
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="1dp"
53         android:layout_marginLeft="2dp"
54         android:layout_marginBottom="1dp"
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="1dp"
64         android:layout_marginLeft="2dp"
65         android:layout_marginBottom="1dp"
66         android:text="@string/label_button3"
67         app:layout_constraintBottom_toTopOf="@id/button2"
68         app:layout_constraintStart_toStartOf="parent" />
69
70     <Button
71         android:id="@+id/button4"
72         android:layout_width="wrap_content"
73         android:layout_height="wrap_content"
74         android:layout_marginStart="1dp"
75         android:layout_marginLeft="2dp"
76         android:layout_marginBottom="1dp"
77         android:text="@string/label_button4"
78         app:layout_constraintBottom_toTopOf="@id/button3"
79         app:layout_constraintStart_toStartOf="parent" />
80
81     <ImageView
82         android:id="@+id/imageView"
83         android:layout_width="fill_parent"
84         android:layout_height="0dip"
85         android:layout_marginTop="2dp"
86         android:contentDescription="@string/blank"
87         android:scaleType="fitCenter"
88         android:src="@drawable/cameratest"
89         android:visibility="visible"
90         app:layout_constraintBottom_toTopOf="@id/button3"
91         app:layout_constraintEnd_toEndOf="parent"
92         app:layout_constraintStart_toStartOf="parent"
93         app:layout_constraintTop_toBottomOf="@id/show_information" />
94
95     <ImageView
96         android:id="@+id/information_view"
97         android:layout_width="300dp"
98         android:layout_height="150dp"
99         android:layout_marginBottom="2dp"
100         android:contentDescription="@string/blank"
101         android:scaleType="fitCenter"
102         android:src="@drawable/cocoa"
103         android:visibility="visible"
104         app:layout_constraintBottom_toBottomOf="parent"
105         app:layout_constraintEnd_toEndOf="parent"
106         app:layout_constraintTop_toBottomOf="@+id/imageView"
107         app:layout_constraintVertical_bias="0.234" />
108
109 </androidx.constraintlayout.widget.ConstraintLayout>