Skip to content
Snippets Groups Projects
Commit d3d0c25a authored by 0xzre's avatar 0xzre
Browse files

fix navigation

parent 257bba9c
Branches
Tags
No related merge requests found
Pipeline #61134 failed with stages
in 0 seconds
package com.atm.bondowowo.ui.transaction package com.atm.bondowowo.ui.transaction
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment import androidx.fragment.app.Fragment
import com.atm.bondowowo.R
class TransactionFragment : Fragment() class TransactionFragment : Fragment() {
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
): View? {
return inflater.inflate(R.layout.fragment_transaction, container, false)
}
}
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
app:defaultNavHost="true" app:defaultNavHost="true"
app:navGraph="@navigation/nav_graph" /> app:navGraph="@navigation/nav_graph" />
<include android:id="@+id/bottom_nav_layout" layout="@layout/bottom_navigation_layout" /> <include
android:id="@+id/bottom_nav_layout"
layout="@layout/bottom_navigation_layout" />
</LinearLayout> </LinearLayout>
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context="com.atm.bondowowo.ui.scan.ScanFragment"> tools:context="com.atm.bondowowo.ui.settings.SettingsFragment">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout
android:id="@+id/header" android:id="@+id/header"
......
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="16dp" android:layout_margin="16dp"
android:contentDescription="@string/add"
android:src="@drawable/add" android:src="@drawable/add"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent" />
android:contentDescription="@string/add" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"> <menu xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:id="@+id/menuTransaksi" android:id="@+id/transactionFragment"
android:icon="@drawable/ic_transaksi" android:icon="@drawable/ic_transaksi"
android:title="@string/transaksi" /> android:title="@string/transaksi" />
<item <item
android:id="@+id/menuScan" android:id="@+id/scanFragment"
android:icon="@drawable/ic_scan" android:icon="@drawable/ic_scan"
android:title="@string/scan" /> android:title="@string/scan" />
<item <item
android:id="@+id/menuGrafik" android:id="@+id/graphFragment"
android:icon="@drawable/ic_grafik" android:icon="@drawable/ic_grafik"
android:title="@string/grafik" /> android:title="@string/grafik" />
<item <item
android:id="@+id/menuPengaturan" android:id="@+id/settingsFragment"
android:icon="@drawable/ic_pengaturan" android:icon="@drawable/ic_pengaturan"
android:title="@string/pengaturan" /> android:title="@string/pengaturan" />
</menu> </menu>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment