네비게이션 드로어 설정 방법 알려 주시면 감사하겠습니다!
조회수 957회
<FrameLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:id="@+id/layout_mapscreen"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.dju_navi.DJU_NAVI" />
</LinearLayout>
<LinearLayout
android:id="@+id/layout_mapscreen_search"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<!-- search bar -->
</LinearLayout>
</FrameLayout>
<android.support.v4.widget.DrawerLayout 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:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_tab"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_tab"
app:menu="@menu/activity_tab_drawer" />
</android.support.v4.widget.DrawerLayout>
이렇게 되있는데 지도 위에 드로어를 나오게 하는 버튼을 추가하고 싶습니다! 또한 지도가 움직이지않습니다.. 많은 답변 부탁드립니다.
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력