How can I use the Navigation Drawer without fragments?

后端 未结 4 1059
不思量自难忘°
不思量自难忘° 2021-02-06 02:32

I\'m trying to follow this tutorial on how to create a Navigation Drawer, but I don\'t want to use Fragments to show new content after the user select an item from the drawer li

4条回答
  •  生来不讨喜
    2021-02-06 03:07

    use this code

    private void selectItem(int position) {
    
    
        // Locate Position
        switch (position) {
        case 0:
                startActivity(new Intent(this,TEST.class));
            break;
    

提交回复
热议问题