質問編集履歴

1

ソースコードの追加

2019/11/11 12:01

投稿

Y.Y
Y.Y

スコア14

test CHANGED
File without changes
test CHANGED
@@ -9,3 +9,165 @@
9
9
 
10
10
 
11
11
  ![イメージ説明](b5d32b4fbfc00193ae13b848caf6f882.png)
12
+
13
+
14
+
15
+ ```
16
+
17
+ <?xml version="1.0" encoding="utf-8"?>
18
+
19
+ <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
20
+
21
+ xmlns:app="http://schemas.android.com/apk/res-auto"
22
+
23
+ xmlns:tools="http://schemas.android.com/tools"
24
+
25
+ android:layout_width="match_parent"
26
+
27
+ android:layout_height="match_parent"
28
+
29
+ tools:context=".HeightActivity">
30
+
31
+
32
+
33
+ <TextView
34
+
35
+ android:id="@+id/textView"
36
+
37
+ android:layout_width="wrap_content"
38
+
39
+ android:layout_height="wrap_content"
40
+
41
+ android:text="身長"
42
+
43
+ tools:layout_editor_absoluteX="16dp"
44
+
45
+ tools:layout_editor_absoluteY="16dp" />
46
+
47
+
48
+
49
+ <TextView
50
+
51
+ android:id="@+id/height"
52
+
53
+ android:layout_width="wrap_content"
54
+
55
+ android:layout_height="wrap_content"
56
+
57
+ android:text="170"
58
+
59
+ android:textAppearance="@style/TextAppearance.AppCompat.Large"
60
+
61
+ android:textSize="36sp"
62
+
63
+ tools:layout_editor_absoluteX="176dp"
64
+
65
+ tools:layout_editor_absoluteY="68dp" />
66
+
67
+
68
+
69
+ <Spinner
70
+
71
+ android:id="@+id/spinner"
72
+
73
+ android:layout_width="100dp"
74
+
75
+ android:layout_height="48dp"
76
+
77
+ android:entries="@array/txt_height_arr"
78
+
79
+ tools:layout_editor_absoluteX="24dp"
80
+
81
+ tools:layout_editor_absoluteY="149dp" />
82
+
83
+
84
+
85
+ <SeekBar
86
+
87
+ android:id="@+id/seekBar"
88
+
89
+ android:layout_width="411dp"
90
+
91
+ android:layout_height="24dp"
92
+
93
+ android:max="200"
94
+
95
+ android:progress="160"
96
+
97
+ tools:layout_editor_absoluteY="197dp" />
98
+
99
+
100
+
101
+ <RadioGroup
102
+
103
+ android:id="@+id/radioGroup"
104
+
105
+ android:layout_width="wrap_content"
106
+
107
+ android:layout_height="wrap_content"
108
+
109
+ android:orientation="horizontal"
110
+
111
+ app:layout_constraintEnd_toEndOf="parent"
112
+
113
+ app:layout_constraintStart_toStartOf="parent"
114
+
115
+ app:layout_constraintTop_toBottomOf="@+id/seekBar">
116
+
117
+
118
+
119
+ <RadioButton
120
+
121
+ android:id="@+id/height1"
122
+
123
+ android:layout_width="match_parent"
124
+
125
+ android:layout_height="wrap_content"
126
+
127
+ android:text="140" />
128
+
129
+
130
+
131
+ <RadioButton
132
+
133
+ android:id="@+id/height2"
134
+
135
+ android:layout_width="match_parent"
136
+
137
+ android:layout_height="wrap_content"
138
+
139
+ android:text="150" />
140
+
141
+
142
+
143
+ <RadioButton
144
+
145
+ android:id="@+id/height3"
146
+
147
+ android:layout_width="match_parent"
148
+
149
+ android:layout_height="wrap_content"
150
+
151
+ android:text="160" />
152
+
153
+
154
+
155
+ <RadioButton
156
+
157
+ android:id="@+id/height4"
158
+
159
+ android:layout_width="match_parent"
160
+
161
+ android:layout_height="wrap_content"
162
+
163
+ android:text="170" />
164
+
165
+
166
+
167
+ </RadioGroup>
168
+
169
+
170
+
171
+ </androidx.constraintlayout.widget.ConstraintLayout>
172
+
173
+ ```