导航抽屉活动

时间:2014-04-25 05:54:46

标签: android navigation

我正在使用导航抽屉构建Android应用程序。单击ListView中的项目,我想startActivity说,帮助。但导航抽屉在导航到该contentView时丢失了。任何想法如何?我知道那简单而愚蠢。我仍然会非常依赖你的帮助。提前谢谢。

Help.class的内容

public class Help extends Activity {    

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

}

help.xml文件的内容:

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

:d

1 个答案:

答案 0 :(得分:0)

检查此链接以更好地了解导航器 enter link description here

完成导航抽屉后,在抽屉布局中放置一个列表视图,并将setOnclickListener放入其中。 使用Intent指定它们的去向。

希望有所帮助

相关问题