質問編集履歴
4
修正前に変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -61,8 +61,7 @@
|
|
61
61
|
<FrameLayout
|
62
62
|
android:id="@+id/frame_layout"
|
63
63
|
android:layout_width="0dp"
|
64
|
-
android:layout_height="
|
64
|
+
android:layout_height="0dp"
|
65
|
-
app:layout_constraintBaseline_toTopOf="@id/bottom_nav_view"
|
66
65
|
app:layout_constraintEnd_toEndOf="parent"
|
67
66
|
app:layout_constraintStart_toStartOf="parent"
|
68
67
|
app:layout_constraintTop_toTopOf="parent">
|
3
xmlを編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -61,7 +61,8 @@
|
|
61
61
|
<FrameLayout
|
62
62
|
android:id="@+id/frame_layout"
|
63
63
|
android:layout_width="0dp"
|
64
|
-
android:layout_height="
|
64
|
+
android:layout_height="match_parent"
|
65
|
+
app:layout_constraintBaseline_toTopOf="@id/bottom_nav_view"
|
65
66
|
app:layout_constraintEnd_toEndOf="parent"
|
66
67
|
app:layout_constraintStart_toStartOf="parent"
|
67
68
|
app:layout_constraintTop_toTopOf="parent">
|
2
activity_main.xmlを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -47,3 +47,35 @@
|
|
47
47
|
|
48
48
|
}
|
49
49
|
```
|
50
|
+
|
51
|
+
```activity_main.xml
|
52
|
+
<?xml version="1.0" encoding="utf-8"?>
|
53
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
54
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
55
|
+
xmlns:tools="http://schemas.android.com/tools"
|
56
|
+
android:layout_width="match_parent"
|
57
|
+
android:layout_height="match_parent"
|
58
|
+
tools:context=".view.MainActivity">
|
59
|
+
|
60
|
+
|
61
|
+
<FrameLayout
|
62
|
+
android:id="@+id/frame_layout"
|
63
|
+
android:layout_width="0dp"
|
64
|
+
android:layout_height="0dp"
|
65
|
+
app:layout_constraintEnd_toEndOf="parent"
|
66
|
+
app:layout_constraintStart_toStartOf="parent"
|
67
|
+
app:layout_constraintTop_toTopOf="parent">
|
68
|
+
|
69
|
+
</FrameLayout>
|
70
|
+
|
71
|
+
<com.google.android.material.bottomnavigation.BottomNavigationView
|
72
|
+
android:id="@+id/bottom_nav_view"
|
73
|
+
android:layout_width="0dp"
|
74
|
+
android:layout_height="wrap_content"
|
75
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
76
|
+
app:layout_constraintEnd_toEndOf="parent"
|
77
|
+
app:layout_constraintStart_toStartOf="parent"
|
78
|
+
app:menu="@menu/bottom_nav"
|
79
|
+
/>
|
80
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
81
|
+
```
|
1
import追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,12 @@
|
|
5
5
|
※また、特にエラーも発生しておりません。。。
|
6
6
|
|
7
7
|
```MainActivity.kt
|
8
|
+
import androidx.appcompat.app.AppCompatActivity
|
9
|
+
import android.os.Bundle
|
10
|
+
import androidx.fragment.app.Fragment
|
11
|
+
import com.undeniabledreams.cloudbudgettracker.R
|
12
|
+
import com.undeniabledreams.cloudbudgettracker.databinding.ActivityMainBinding
|
13
|
+
|
8
14
|
class MainActivity : AppCompatActivity() {
|
9
15
|
|
10
16
|
private lateinit var binding : ActivityMainBinding
|