mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-15 18:28:47 +00:00
Added Stores page
This commit is contained in:
parent
b842dcb46e
commit
dc964d5cbd
@ -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;
|
||||
}
|
||||
}
|
||||
6
Listify/app/src/main/res/layout/fragment_stores.xml
Normal file
6
Listify/app/src/main/res/layout/fragment_stores.xml
Normal 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>
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user