質問編集履歴
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -119,6 +119,7 @@
|
|
119
119
|
|
120
120
|
<?xml version="1.0" encoding="utf-8"?>
|
121
121
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
122
|
+
android:id="@+id/sub"
|
122
123
|
xmlns:tools="http://schemas.android.com/tools"
|
123
124
|
android:layout_width="match_parent"
|
124
125
|
android:layout_height="match_parent"
|
@@ -250,7 +251,7 @@
|
|
250
251
|
super.onCreate(savedInstanceState);
|
251
252
|
EdgeToEdge.enable(this);
|
252
253
|
setContentView(R.layout.users_information);
|
253
|
-
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.
|
254
|
+
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.sub), (v, insets) -> {
|
254
255
|
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
|
255
256
|
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
|
256
257
|
return insets;
|
4
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -115,7 +115,7 @@
|
|
115
115
|
|
116
116
|
```
|
117
117
|
users_information.xml
|
118
|
-
```
|
118
|
+
```xml
|
119
119
|
|
120
120
|
<?xml version="1.0" encoding="utf-8"?>
|
121
121
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
@@ -233,7 +233,7 @@
|
|
233
233
|
|
234
234
|
```
|
235
235
|
UsersInformation.java
|
236
|
-
```
|
236
|
+
```java
|
237
237
|
|
238
238
|
import android.os.Bundle;
|
239
239
|
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -114,8 +114,8 @@
|
|
114
114
|
}
|
115
115
|
|
116
116
|
```
|
117
|
-
|
118
|
-
|
117
|
+
users_information.xml
|
118
|
+
```.xml
|
119
119
|
|
120
120
|
<?xml version="1.0" encoding="utf-8"?>
|
121
121
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
@@ -232,8 +232,8 @@
|
|
232
232
|
</RelativeLayout>
|
233
233
|
|
234
234
|
```
|
235
|
-
|
236
|
-
|
235
|
+
UsersInformation.java
|
236
|
+
```.java
|
237
237
|
|
238
238
|
import android.os.Bundle;
|
239
239
|
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,8 +7,8 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
### 該当のソースコード
|
10
|
-
|
11
|
-
|
10
|
+
activity_main.xml
|
11
|
+
```xml
|
12
12
|
<?xml version="1.0" encoding="utf-8"?>
|
13
13
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
14
14
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
@@ -58,8 +58,8 @@
|
|
58
58
|
|
59
59
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
60
60
|
```
|
61
|
-
|
62
|
-
|
61
|
+
MainActivity.java
|
62
|
+
```java
|
63
63
|
|
64
64
|
import android.content.Intent;
|
65
65
|
import android.os.Bundle;
|
@@ -116,6 +116,7 @@
|
|
116
116
|
```
|
117
117
|
|
118
118
|
```users_information.xml
|
119
|
+
|
119
120
|
<?xml version="1.0" encoding="utf-8"?>
|
120
121
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
121
122
|
xmlns:tools="http://schemas.android.com/tools"
|
1
書式の改善
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
AndroidStudio(java)
|
1
|
+
Androidアプリ画面の画面遷移について(AndroidStudio(java))
|
test
CHANGED
@@ -60,7 +60,6 @@
|
|
60
60
|
```
|
61
61
|
|
62
62
|
```MainActivity.java
|
63
|
-
package com.example.mizukagami;
|
64
63
|
|
65
64
|
import android.content.Intent;
|
66
65
|
import android.os.Bundle;
|
@@ -234,7 +233,6 @@
|
|
234
233
|
```
|
235
234
|
|
236
235
|
```UsersInformation.java
|
237
|
-
package com.example.mizukagami;
|
238
236
|
|
239
237
|
import android.os.Bundle;
|
240
238
|
|