Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.23 KB

Exercise_7_2_Navigation_Drawer.md

File metadata and controls

25 lines (19 loc) · 1.23 KB

Objectives:

  • Learn how to add navigation drawer feature to your app.

Requirements:

  • Change the layout from tabs in Exercise 6.2 to use navigation drawer.
  • Create a new activity named NavigationDrawerPostActivity.
  • Create a navigation drawer that shows a list of topics so user can navigate easily:

Normal Navigation view

Navigation Drawer open

Navigation Drawer land

  • The navigation drawer will contain a header that shows the text Reddit Post
  • The hamgurger icon should be changed to back arrow icon if the drawer is opened.
  • Select one of the items inside navigation drawer will change the main content to show posts of the corresponding topic.
  • Notice how a menu item is changed if it's selected.
  • The navigation item icon can be downloaded from here: Icon

References:

Bonus:

  • See if you can show the navigation drawer that covers the actionbar like this: Bonus navigation drawer