Skip to content

Commit

Permalink
Navigation Drawer Elements
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanWidjanarko committed Dec 2, 2021
1 parent 85effbb commit d303f76
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added app/src/main/res/drawable/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/signout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions app/src/main/res/menu/navigation_drawer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">

<group
android:id="@+id/group_navigation_bar"
android:checkableBehavior="single">

<item
android:id="@+id/item_edit_profile"
android:icon="@drawable/edit"
android:title="@string/edit_profile" />

<item
android:id="@+id/item_add_payment_method"
android:icon="@drawable/add"
android:title="@string/add_payment_method_s" />

<item
android:id="@+id/item_about"
android:icon="@drawable/about"
android:title="@string/about" />

<item
android:id="@+id/item_help"
android:icon="@drawable/help"
android:title="@string/help" />

<item
android:id="@+id/item_sign_out"
android:icon="@drawable/signout"
android:title="@string/sign_out" />

</group>

</menu>
5 changes: 5 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@
<string name="name_dummy">John Doe</string>
<string name="email_dummy">[email protected]</string>
<string name="see_shopping_history">See Shopping History</string>
<string name="edit_profile">Edit Profile</string>
<string name="add_payment_method_s">Add Payment Method(s)</string>
<string name="about">About</string>
<string name="help">Help</string>
<string name="sign_out">Sign Out</string>
</resources>

0 comments on commit d303f76

Please sign in to comment.