0
我的应用程序的工作,我需要导航抽屉。我使用谷歌的代码,通过这个,我得到一个导航抽屉开发抽屉式导航导航抽屉如何添加上述列表视图
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<!-- Framelayout to display Fragments -->
<FrameLayout
android:id="@+id/frame_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- Listview to display slider menu -->
<ListView
android:id="@+id/list_slidermenu"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:background="#6495ED"
android:choiceMode="singleChoice"
android:divider="@color/list_divider"
android:dividerHeight="1dp"
android:listSelector="#fff" />
</android.support.v4.widget.DrawerLayout>
图像视图,但我想把一个imageview上面列表视图。我GOOGLE了它,但我没有得到我的意思
你能告诉我们一个你想要的例子吗? – 2015-03-03 10:06:44
你可以添加headerView到ListView – virendrao 2015-03-03 10:32:37
@Skizo我想设计一个导航抽屉,我想显示用户图像和名称,然后列表视图..我知道如何显示列表视图,但不知道如何添加图像视图和文本视图在导航抽屉中.i已经显示了我的代码,上面介绍了我从Google开发者网站获取的导航抽屉。 – 2015-03-04 05:28:55