Android Studio - Create Navigation Drawer

RobinsonProgramming.com · 230K views · 2016 · 5:11

Open on YouTube

Software practice, open source & careersSoftware (other)tutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when beginners need a quick walkthrough for setting up a navigation drawer with fragments in Android Studio.

Recommended by 4 people across 4 different months, 2016 to 2018.

What it is

A short screencast tutorial from RobinsonProgramming.com showing how to build an Android app with a navigation drawer that swipes in from the left, using Android Studio. Source code is offered for download and the audio is in English.

What people said

Recommends Elmer · 2016-11 · Stack Overflow · on “Dynamic handling of Fragment”

I don't exactly understand what you see and what you should see, but I'm also using fragments in one of my projects and used this guys tutorial to get started. Just pause and play as needed. Hope it helps. [this video]

Recommends Sergei Bubenshchikov · 2016-12 · Stack Overflow · on “Resize navigation icon in toolbar”

Oleksandr, you don't need put menu icon yourself . Just use Toolbar with AppBarLayout. Documentation [LINK] explains fully this. Android Studio latest version can create menu navigation activity template, which you can just fill menu items and actions. That methos step-by-step explained in video [this video]

Recommends user7462841 · 2017-05 · Stack Overflow · on “Hamburger icon click not working in Drawer Layout”

Simply create your navigation drawer using android studio template. follow this flow: fileMenu-->new-->newProject-->configure your new project-->select navigation drawer activity-->next/finish Here are some ref. for demonstration: navigation 1 [this video] navigation 2 [LINK]

Recommends user6086991 · 2018-04 · Stack Overflow · on “Cannot align textview”

Actually I wanted to create a navigation drawer app so I watched this video [this video] and had to add FrameLayout

Cites Edwardhk · 2016-07 · Stack Overflow · on “Android Cannot find views”

For example, I have A, B, C and main activity xml with A, B, C main java respectively. I was trying to put a frame layout in main I have also create FM_A, FM_B and FM_C which is a fragment java linked to A, B, C layout xml Since main is a navigation bar activity, I replace the frame layout in main with fragment, it was all successful. Until I tried to use the button in the layout, an error saying: Could not find method saveSetting(View) in a parent or ancestor Context for android:onClick attribute defined on view class android.support.v7.widget.AppCompatButton with id 'btnSave' With the activity alone without accesssing them with fragment, it can be normally functioned, is that my way of doi

Cites Mantas Jakstas · 2016-07 · Stack Overflow · on “Android Studio content_main and _activity_layout”

I followed this video in this video apears my problem , in each layout ( hello world ) of content_main . [this video]

Cites Martin95y · 2016-11 · Stack Overflow · on “View List - Android Studio = Navigation Drawer Layout”

I am a beginner in Android Studio and I need to help. I'm trying to make App on Navigation Drawer Layout. So, I found a tutorial how to get a specific layout when I click on something in Navigation Drawer Menu [this video] Works Perfect! Just now I want to make ViewList in one layout of them I'm refering from Main Navigation Menu so I found next tutorial ( [LINK] ). I tried to apply ListView Tutorial on a brand-new project and it works perfectly! Problem is when I want to apply this to my project where I have already used Navigation on specific layouts with fragments. It says there is some duplication. Here is my MainActivity: package com.example.martin.ultimateenglish; import android.os.Bundle;

Cites Harshinee Sriram · 2016-12 · Stack Overflow · on “Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not find com.google.android.gms:play-services-appindexing:10.0.1”

I am new to Android Studio and I tried adding Google Sign In but I got lost somewhere in the middle of the process after creating a Client ID, so I abandoned that idea. Then I thought of adding a Navigation Drawer (referring to: [this video] ) But after running it, it shows the error: Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not find com.google.android.gms:play-services-appindexing:10.0.1. Required by: WebLearn:app:unspecified This is my build gradle: module app --> apply plugin: 'com.android.application' //apply plugin: 'com.google.gms.google-services' apply plugin: 'com.android.application' android { co

Cites chocolateAndMath · 2017-07 · Stack Overflow · on “Android Studio, error, in navigation drawer”

I am trying to only make a navigation drawer. I am getting these errors - $ Error:(7, 23) No resource found that matches the given name (at 'icon' with value '@drawable/ic_menu_camera'). Error:(11, 23) No resource found that matches the given name (at 'icon' with value '@drawable/ic_menu_gallery'). Error:(15, 19) No resource found that matches the given name (at 'icon' with value '@drawable/ic_menu_slideshow'). Error:(23, 31) No resource found that matches the given name (at 'icon' with value '@drawable/ic_menu_share'). Error:(27, 31) No resource found that matches the given name (at 'icon' with value '@drawable/ic_menu_send'). Trying to follow this tutorial - [this video] Here is my global.xml f

Cites Daniel Fernandes · 2017-07 · Stack Overflow · on “How can I open a navigation drawer with a swipe from the left gesture?”

I created a navigation drawer but I don't want to use the ActionBar with the hamburger button, I would like to be able to open the navigation drawer with a swiping gesture from the left to the right in every activity. I also don't understand very well the use of Fragments. By the way, to create my Navigation drawer I used this youtube video: Video [this video] Thanks.