92 lines
3.6 KiB
XML
92 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:mapbox="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:clickable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:visibility="visible"
|
|
tools:openDrawer="start">
|
|
|
|
<com.mapbox.mapboxsdk.maps.MapView
|
|
android:id="@+id/mapView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="visible"
|
|
mapbox:mapbox_cameraTargetLat="52.466799"
|
|
mapbox:mapbox_cameraTargetLng="16.927002"
|
|
mapbox:mapbox_cameraZoom="17"
|
|
mapbox:mapbox_styleUrl="mapbox://styles/domagalsky/cjiyzrqjp05l72rmj6ntvv2n8">
|
|
</com.mapbox.mapboxsdk.maps.MapView>
|
|
|
|
<android.support.design.widget.NavigationView
|
|
android:id="@+id/nav_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
app:headerLayout="@layout/nav_header_main"
|
|
app:menu="@menu/activity_main_drawer">
|
|
|
|
|
|
</android.support.design.widget.NavigationView>
|
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".activity.MainActivity">
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/logoutButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginRight="@dimen/fab_margin"
|
|
android:layout_marginTop="77dp"
|
|
app:backgroundTint="@android:color/holo_red_dark"
|
|
app:srcCompat="@android:drawable/ic_lock_power_off" />
|
|
|
|
|
|
<include
|
|
android:id="@+id/include"
|
|
layout="@layout/content_main" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/main_frame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
</FrameLayout>
|
|
|
|
<android.support.design.widget.BottomNavigationView
|
|
android:id="@+id/main_nav"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_marginStart="0dp"
|
|
android:background="@color/colorPrimaryDark"
|
|
app:itemBackground="@color/colorPrimaryDark"
|
|
app:itemIconTint="@color/nav_item_colors"
|
|
app:itemTextColor="@color/nav_item_colors"
|
|
app:layout_anchor="@+id/include"
|
|
app:layout_anchorGravity="bottom|center"
|
|
app:menu="@menu/nav_items" />
|
|
</RelativeLayout>
|
|
<include
|
|
layout="@layout/app_bar_main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|
|
</android.support.v4.widget.DrawerLayout>
|