Page 379 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 379

다)XML  세부코드



            ①  activity_main
            <?xml  version="1.0"  encoding="utf-8"
            <android.support.design.widget.CoordinatorLayout
                  xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:app="http://schemas.android.com/apk/res-auto"

                  xmlns:tools="http://schemas.android.com/tools"  android:layout_width="match_parent"
                  android:layout_height="match_parent"  android:fitsSystemWindows="true"
                  tools:context=".MainActivity">


                  <android.support.design.widget.AppBarLayout  android:layout_height="wrap_content"
                       android:layout_width="match_parent"  android:theme="@style/AppTheme.AppBarOverlay">


                       <android.support.v7.widget.Toolbar  android:id="@+id/toolbar"
                             android:layout_width="match_parent"  android:layout_height="?attr/actionBarSize"
                             android:background="?attr/colorPrimary"
                          app:popupTheme="@style/AppTheme.PopupOverlay"  />


                       </android.support.design.widget.AppBarLayout>


                  <include  layout="@layout/content_main"  />



            </android.support.design.widget.CoordinatorLayout>


            ②  content_main
            <fragment  xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:tools="http://schemas.android.com/tools"
                  xmlns:app="http://schemas.android.com/apk/res-auto"  android:id="@+id/fragment"

                  android:name="strider.inmarand.MainActivityFragment"  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  app:layout_behavior="@string/appbar_scrolling_view_behavior"
                  tools:layout="@layout/fragment_main"  />
















                                                         -  372  -
   374   375   376   377   378   379   380   381   382   383   384