I am building an Android Application with Navigation Drawer. On Clicking the items in the ListView, I want to startActivity say, Help. But the Navigation Drawer is Lost on navigating to that contentView. Any Ideas how to? I know that's simple and silly. Still I would heavily count on your help. Thanks in advance.

Content of Help.class

public class Help extends Activity {    

    public void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help);
    }

}

Contents of help.xml file:

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Help Section"
    tools:ignore="HardcodedText" />

:D

有帮助吗?

解决方案

Check this link for better understanding on navigationdrawer enter link description here

Once you have your navigation drawer done put a listview in the drawer layout and put setOnclickListener to those. Use Intents to specify them where to go.

Hope it helps

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top