147 Custom ListView in Android Navigation Drawer |

slidenerd · 84K views · 2014 · 11:50

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed for a navigation drawer with icons, usually when asking how to extend it or fix errors in their own copy.

Recommended by 2 people across 2 different months, 2014 to 2017.

What it is

A short Android tutorial from the slidenerd series showing how to build a custom ListView with icons inside a navigation drawer, using a BaseAdapter subclass and an XML row layout. It is one episode in a longer step-by-step course.

What people said

Recommends Adam · 2014-11 · Stack Overflow · on “How to link listview items to different activities in android?”

my name Adam, I followed this tutorial [this video] to create an navigation drawer, everything is working fine, as in, I am able to slide the drawer in and out. The problem I am having is, I want to link each item in the drawer to different activities. For example, I have a button/item in my itemview called "Main Menu", I want to link this item/button to a activity called Home Screen. Similarly, I have another item/button called "Videos" in the itemview and I want to link this to a activity called My videos and so on, with all my buttons, I have 5 buttons in total. Sorry, I won't be able to provide any screenshots of my work because my work is on my laptop and my dad has borrowed it of me for few

Recommends Vurgun M · 2016-12 · Stack Overflow · on “Add items in Navigation Drawer Dynamically”

Narrow down your search to Navigation Drawer with List view. If you have listview you can manipulate data with adapter. Check this one example. [this video]

Cites user3802633 · 2015-08 · Stack Overflow · on “Null Pointer Exception in Navigation Drawer”

I am currently following this tutorial on how to create navigation drawer with icons beside the titles. [this video] I follow the codes and do it properly. in his previous tutorial i run this properly but when i came here at putting icons in navigation. when i run my program i got NullpointerException. what was the cause of my erro? help me please. This is my code. MainActivity.java public class MainActivity extends ActionBarActivity implements AdapterView.OnItemClickListener { private ListView listView; private DrawerLayout drawerLayout; private ActionBarDrawerToggle drawerListener; private MyAdapter myAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedIn

Cites FOR FUN · 2017-03 · Stack Overflow · on “NavigationDrawer is not working?”

Program is not responding as soon as I run it there is no compile time error. For more information check the link below [this video] public class MainActivity extends AppCompatActivity { private DrawerLayout mDrawerLayout; ListView mListView; private ActionBarDrawerToggle toogle; private custome_adapter adp; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); adp = new custome_adapter(this); mListView.setAdapter(adp); mDrawerLayout = (DrawerLayout)findViewById(R.id.drawerlayout); mListView = (ListView)findViewById(R.id.list); toogle = new ActionBarDrawerToggle(this,mDrawerLayout,R.string.open,R.string.close){ @