質問編集履歴

1

改善

2023/01/20 01:07

投稿

BEWD
BEWD

スコア10

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,8 @@
12
12
 
13
13
  ### 該当のソースコード
14
14
 
15
+
15
- MainActivity.java
16
+ ```MainActivity.java
16
17
  package com.example.check2;
17
18
  import androidx.appcompat.app.AlertDialog;
18
19
  import androidx.appcompat.app.AppCompatActivity;
@@ -138,9 +139,11 @@
138
139
  }
139
140
  }
140
141
  }
141
-
142
+ ```
143
+
144
+
145
+
142
- activityMain.xml
146
+ ```activityMain.xml
143
- ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2023-01-13/49159dfb-8fb6-414b-9ebb-88560dfb32a1.png)
144
147
  <?xml version="1.0" encoding="utf-8"?>
145
148
  <RelativeLayout
146
149
  xmlns:android="http://schemas.android.com/apk/res/android"
@@ -174,11 +177,12 @@
174
177
  </LinearLayout>
175
178
  </ScrollView>
176
179
  </RelativeLayout>
180
+ ```
177
181
   
182
+
183
+
178
- dialog.xml
184
+ ```dialog.xml
179
- ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2023-01-13/9e2047cc-8ee5-4339-b7e2-32b114fe9aed.png)
180
185
  <?xml version="1.0" encoding="utf-8"?>
181
-
182
186
  <RelativeLayout
183
187
  xmlns:android="http://schemas.android.com/apk/res/android"
184
188
  xmlns:tools="http://schemas.android.com/tools"
@@ -211,9 +215,9 @@
211
215
  </LinearLayout>
212
216
  </ScrollView>
213
217
  </RelativeLayout>
214
-
218
+ ```
219
+
215
- card.xml
220
+ ```card.xml
216
- ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2023-01-13/45e8d9ae-64e0-4067-9880-f0989cf8b08f.png)
217
221
  <?xml version="1.0" encoding="utf-8"?>
218
222
  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
219
223
  android:layout_width="match_parent"
@@ -252,14 +256,11 @@
252
256
  android:layout_height="50dp"
253
257
  android:layout_alignParentEnd="true"
254
258
  android:layout_alignParentRight="true"/>
255
-
256
259
  </RelativeLayout>
257
-
258
260
  </androidx.cardview.widget.CardView>
259
-
260
261
  </RelativeLayout>
261
-
262
262
  </RelativeLayout>
263
+ ```
263
264
  ### 試したこと
264
265
 
265
266
  プログラムを消したり増やしたり。