在Android Navigation抽屉中创建复杂视图
嗨,我正在开发一个使用幻灯片菜单的android应用程序。我正在尝试在幻灯片菜单中创建一个类似远程的视图。就像是遥控器里的一样。如何在导航抽屉中创建如此复杂的视图在Android Navigation抽屉中创建复杂视图,android,navigation-drawer,android-view,Android,Navigation Drawer,Android View,嗨,我正在开发一个使用幻灯片菜单的android应用程序。我正在尝试在幻灯片菜单中创建一个类似远程的视图。就像是遥控器里的一样。如何在导航抽屉中创建如此复杂的视图 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" an
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">
//your stuff goes here
</FrameLayout>
<FrameLayout
android:id="@+id/navigation_drawer"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start" />
</android.support.v4.widget.DrawerLayout>
id为navigation\u drawer的FrameLayout将是您的抽屉,您可以使用该片段加载其中的任何复杂视图