Added Stores page

This commit is contained in:
Aaron Sun 2020-11-24 17:56:48 -08:00
parent b842dcb46e
commit dc964d5cbd
5 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package com.example.listify.ui.store;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.LayoutInflater;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import com.example.listify.R;
public class StoreFragment extends Fragment {
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.fragment_stores, container, false);
return root;
}
}

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -14,6 +14,11 @@
android:icon="@drawable/ic_baseline_person_24"
android:title="@string/menu_profile" />
<item
android:id="@+id/nav_stores"
android:icon="@drawable/ic_baseline_person_24"
android:title="@string/menu_stores" />
<item
android:id="@+id/nav_logout"
android:title="Sign out"

View File

@ -17,6 +17,12 @@
android:label="@string/menu_profile"
tools:layout="@layout/fragment_profile" />
<fragment
android:id="@+id/nav_stores"
android:name="com.example.listify.ui.store.StoreFragment"
android:label="@string/menu_stores"
tools:layout="@layout/fragment_stores" />
<fragment
android:id="@+id/nav_gallery"
android:name="com.example.listify.ui.gallery.GalleryFragment"

View File

@ -9,6 +9,7 @@
<string name="menu_home">My Lists</string>
<string name="menu_profile">Profile</string>
<string name="menu_stores">Stores</string>
<string name="menu_gallery">Gallery</string>
<string name="menu_slideshow">Slideshow</string>