added a ShoppinglistListsFragment for listing shop-specific shopping lists
added a ClickListener to provide the behavior to navigate to the ShoppinglistListsFragment modified necessary files to implement the new behavior
This commit is contained in:
9
app/src/main/res/layout/fragment_shoppinglist_lists.xml
Normal file
9
app/src/main/res/layout/fragment_shoppinglist_lists.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.dashboard.tabfragment.shoppinglist.ShoppinglistListsFragment">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,11 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cardview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
android:id="@+id/nav_dashboard"
|
||||
android:name="de.chrissthecoder.store.ui.dashboard.DashboardFragment"
|
||||
android:label="@string/menu_dashboard"
|
||||
tools:layout="@layout/fragment_dashboard" />
|
||||
tools:layout="@layout/fragment_dashboard" >
|
||||
<action
|
||||
android:id="@+id/action_nav_dashboard_to_shoppinglistLists"
|
||||
app:destination="@id/shoppinglistLists" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/nav_gallery"
|
||||
@@ -22,4 +26,10 @@
|
||||
android:name="de.chrissthecoder.store.ui.slideshow.SlideshowFragment"
|
||||
android:label="@string/menu_slideshow"
|
||||
tools:layout="@layout/fragment_slideshow" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/shoppinglistLists"
|
||||
android:name="de.chrissthecoder.store.ui.dashboard.tabfragment.shoppinglist.ShoppinglistListsFragment"
|
||||
android:label="@string/nav_shoppinglist"
|
||||
tools:layout="@layout/fragment_shoppinglist_lists" />
|
||||
</navigation>
|
||||
@@ -13,4 +13,6 @@
|
||||
|
||||
<string name="tab_shoppinglist">Einkaufszettel</string>
|
||||
<string name="tab_understock">Minderbestand</string>
|
||||
|
||||
<string name="nav_shoppinglist">Einkaufszettel</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user