質問編集履歴
1
コードを見やすく修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
-----------
|
10
9
|
|
11
10
|
|
11
|
+
```Kotlin
|
12
12
|
|
13
13
|
private var _currentPage: Fragment
|
14
14
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
fun addPage(fragment: Fragment){
|
18
18
|
|
19
|
-
|
19
|
+
val transaction = fragmentManager.beginTransaction()
|
20
20
|
|
21
21
|
transaction.add(R.id.fragment_container, fragment)
|
22
22
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
|
39
|
+
```
|
40
40
|
|
41
41
|
|
42
42
|
|