質問編集履歴
1
ソースコードの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,4 +3,85 @@
|
|
3
3
|
|
4
4
|
解決方法をご存じの方がいらっしゃれば、ご教示お願い致します。
|
5
5
|
|
6
|
-

|
6
|
+

|
7
|
+
|
8
|
+
```
|
9
|
+
<?xml version="1.0" encoding="utf-8"?>
|
10
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
11
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
12
|
+
xmlns:tools="http://schemas.android.com/tools"
|
13
|
+
android:layout_width="match_parent"
|
14
|
+
android:layout_height="match_parent"
|
15
|
+
tools:context=".HeightActivity">
|
16
|
+
|
17
|
+
<TextView
|
18
|
+
android:id="@+id/textView"
|
19
|
+
android:layout_width="wrap_content"
|
20
|
+
android:layout_height="wrap_content"
|
21
|
+
android:text="身長"
|
22
|
+
tools:layout_editor_absoluteX="16dp"
|
23
|
+
tools:layout_editor_absoluteY="16dp" />
|
24
|
+
|
25
|
+
<TextView
|
26
|
+
android:id="@+id/height"
|
27
|
+
android:layout_width="wrap_content"
|
28
|
+
android:layout_height="wrap_content"
|
29
|
+
android:text="170"
|
30
|
+
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
31
|
+
android:textSize="36sp"
|
32
|
+
tools:layout_editor_absoluteX="176dp"
|
33
|
+
tools:layout_editor_absoluteY="68dp" />
|
34
|
+
|
35
|
+
<Spinner
|
36
|
+
android:id="@+id/spinner"
|
37
|
+
android:layout_width="100dp"
|
38
|
+
android:layout_height="48dp"
|
39
|
+
android:entries="@array/txt_height_arr"
|
40
|
+
tools:layout_editor_absoluteX="24dp"
|
41
|
+
tools:layout_editor_absoluteY="149dp" />
|
42
|
+
|
43
|
+
<SeekBar
|
44
|
+
android:id="@+id/seekBar"
|
45
|
+
android:layout_width="411dp"
|
46
|
+
android:layout_height="24dp"
|
47
|
+
android:max="200"
|
48
|
+
android:progress="160"
|
49
|
+
tools:layout_editor_absoluteY="197dp" />
|
50
|
+
|
51
|
+
<RadioGroup
|
52
|
+
android:id="@+id/radioGroup"
|
53
|
+
android:layout_width="wrap_content"
|
54
|
+
android:layout_height="wrap_content"
|
55
|
+
android:orientation="horizontal"
|
56
|
+
app:layout_constraintEnd_toEndOf="parent"
|
57
|
+
app:layout_constraintStart_toStartOf="parent"
|
58
|
+
app:layout_constraintTop_toBottomOf="@+id/seekBar">
|
59
|
+
|
60
|
+
<RadioButton
|
61
|
+
android:id="@+id/height1"
|
62
|
+
android:layout_width="match_parent"
|
63
|
+
android:layout_height="wrap_content"
|
64
|
+
android:text="140" />
|
65
|
+
|
66
|
+
<RadioButton
|
67
|
+
android:id="@+id/height2"
|
68
|
+
android:layout_width="match_parent"
|
69
|
+
android:layout_height="wrap_content"
|
70
|
+
android:text="150" />
|
71
|
+
|
72
|
+
<RadioButton
|
73
|
+
android:id="@+id/height3"
|
74
|
+
android:layout_width="match_parent"
|
75
|
+
android:layout_height="wrap_content"
|
76
|
+
android:text="160" />
|
77
|
+
|
78
|
+
<RadioButton
|
79
|
+
android:id="@+id/height4"
|
80
|
+
android:layout_width="match_parent"
|
81
|
+
android:layout_height="wrap_content"
|
82
|
+
android:text="170" />
|
83
|
+
|
84
|
+
</RadioGroup>
|
85
|
+
|
86
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
87
|
+
```
|