質問編集履歴
3
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,6 +16,16 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
+
#追記
|
20
|
+
|
21
|
+
新しくエラーコードを発見しましたのでよければご教授願います。レイアウトのConstrainLayout
|
22
|
+
|
23
|
+
のところでエラーが出たのでそこい問題があると思われます。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
19
29
|
エラーコード
|
20
30
|
|
21
31
|
```
|
2
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,111 @@
|
|
14
14
|
|
15
15
|
以下ソースコードです。
|
16
16
|
|
17
|
+
|
18
|
+
|
19
|
+
エラーコード
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
Unexpected text found in layout file: "/>"
|
24
|
+
|
25
|
+
Layout resource files should only contain elements and attributes.
|
26
|
+
|
27
|
+
Any XML text content found in the file is likely accidental
|
28
|
+
|
29
|
+
(and potentially dangerous if the text resembles XML and
|
30
|
+
|
31
|
+
the developer believes the text to be functional) Issue id: ExtraText
|
32
|
+
|
33
|
+
ここに言語を入力
|
34
|
+
|
35
|
+
コード
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
activity.xlmns
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
<?xml version="1.0" encoding="utf-8"?>
|
44
|
+
|
45
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
46
|
+
|
47
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
48
|
+
|
49
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
50
|
+
|
51
|
+
xmlns:tools="http://schemas.android.com/tools"
|
52
|
+
|
53
|
+
android:layout_width="match_parent"
|
54
|
+
|
55
|
+
android:layout_height="match_parent"
|
56
|
+
|
57
|
+
android:padding="20dp"
|
58
|
+
|
59
|
+
tools:context=".MainActivity">
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<TextView
|
66
|
+
|
67
|
+
android:id="@+id/Text"
|
68
|
+
|
69
|
+
android:layout_width="wrap_content"
|
70
|
+
|
71
|
+
android:layout_height="wrap_content"
|
72
|
+
|
73
|
+
android:layout_marginBottom="8dp"
|
74
|
+
|
75
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
76
|
+
|
77
|
+
app:layout_constraintLeft_toLeftOf="parent"
|
78
|
+
|
79
|
+
app:layout_constraintRight_toRightOf="parent"
|
80
|
+
|
81
|
+
app:layout_constraintTop_toTopOf="parent" />
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<Button
|
86
|
+
|
87
|
+
android:id="@+id/send_button"
|
88
|
+
|
89
|
+
android:text="@string/gatya"
|
90
|
+
|
91
|
+
android:layout_width="wrap_content"
|
92
|
+
|
93
|
+
android:layout_height="wrap_content"
|
94
|
+
|
95
|
+
android:layout_marginTop="32dp"
|
96
|
+
|
97
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
98
|
+
|
99
|
+
app:layout_constraintLeft_toLeftOf="parent"
|
100
|
+
|
101
|
+
app:layout_constraintRight_toRightOf="parent"
|
102
|
+
|
103
|
+
app:layout_constraintTop_toTopOf="parent" />/>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
108
|
+
|
109
|
+
コード
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
Mainactivity
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
```
|
120
|
+
|
17
|
-
|
121
|
+
public class MainActivity extends AppCompatActivity {
|
18
122
|
|
19
123
|
private TextView textView;
|
20
124
|
|
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
こんばんわ、観て頂きありがとうございます。
|
2
|
+
|
3
|
+
プログラミング初心者なりに考えてみたのですがなぜ実行しないか全くわかりません。
|
4
|
+
|
5
|
+
お力添えしていただけると幸いです。
|
2
6
|
|
3
7
|
|
4
8
|
|
@@ -7,8 +11,6 @@
|
|
7
11
|
ガチャシミュレータのようなものを作ろうと思っています。
|
8
12
|
|
9
13
|
ボタンを押したら確率によってレア度を表示したいと考えています。
|
10
|
-
|
11
|
-
初心者で専門用語も分からないので間違ってる部分のソースコードを教えて頂けると嬉しいです。
|
12
14
|
|
13
15
|
以下ソースコードです。
|
14
16
|
|