Android 片段\u活动和片段\u导航\u抽屉

Android 片段\u活动和片段\u导航\u抽屉,android,fragment,navigation-drawer,Android,Fragment,Navigation Drawer,我正在尝试构建一个应用程序。。。使用导航抽屉项目 当我创建它时,我发现有3种布局,即,activity\u main,fragment\u activity和fragment\u navigation\u drawer。我想知道这些布局之间的关系 我想知道我必须知道什么导航抽屉项目,使这个应用程序好 还有,谁能给我一个学习高级Android的网站 以下是活动\u main所包含的内容: <i>!-- A DrawerLayout is intended to be used as t

我正在尝试构建一个应用程序。。。使用导航抽屉项目

当我创建它时,我发现有3种布局,即,
activity\u main
fragment\u activity
fragment\u navigation\u drawer
。我想知道这些布局之间的关系

我想知道我必须知道什么导航抽屉项目,使这个应用程序好

还有,谁能给我一个学习高级Android的网站

以下是
活动\u main
所包含的内容:

<i>!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. -->
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout"
    android:layout_width="match_parent" android:layout_height="match_parent"
    tools:context=".MainActivity">

    <!-- As the main content view, the view below consumes the entire
         space available using match_parent in both dimensions. -->
    <FrameLayout android:id="@+id/container" android:layout_width="match_parent"
        android:layout_height="match_parent" >

    </FrameLayout>

    <!-- android:layout_gravity="start" tells DrawerLayout to treat
         this as a sliding drawer on the left side for left-to-right
         languages and on the right side for right-to-left languages.
         If you're not building against API 17 or higher, use
         android:layout_gravity="left" instead. -->
    <!-- The drawer is given a fixed width in dp and extends the full height of
         the container. -->
    <fragment android:id="@+id/navigation_drawer"
        android:layout_width="@dimen/navigation_drawer_width" android:layout_height="match_parent"
        android:layout_gravity="start"
        android:name="com.main.project.myapplication.NavigationDrawerFragment"
        tools:layout="@layout/fragment_navigation_drawer" />

</android.support.v4.widget.DrawerLayout> </i>
!--抽屉布局旨在用作顶层内容视图,使用宽度和高度匹配父视图来消耗可用的全部空间。-->
谢谢