mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
178 lines
No EOL
6.9 KiB
XML
178 lines
No EOL
6.9 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"
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/coordinator_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<include
|
|
android:id="@+id/toolbar"
|
|
layout="@layout/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@id/toolbar"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/transparentView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_below="@id/toolbar"
|
|
android:background="#aa969696"
|
|
android:elevation="6dp">
|
|
|
|
</View>
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab_recenter"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_below="@+id/toolbar"
|
|
android:layout_marginRight="12dp"
|
|
android:layout_marginTop="6dp"
|
|
android:clickable="true"
|
|
android:visibility="invisible"
|
|
app:backgroundTint="@color/main_background_light"
|
|
app:elevation="6dp"
|
|
app:fabSize="normal"
|
|
app:layout_anchorGravity="top|right|end"
|
|
app:srcCompat="@drawable/ic_my_location_black_24dp" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<include layout="@layout/bottom_sheet_nearby" />
|
|
|
|
<include
|
|
android:id="@+id/bottom_sheet_details"
|
|
layout="@layout/bottom_sheet_details" />
|
|
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab_plus"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_marginRight="12dp"
|
|
android:clickable="true"
|
|
android:visibility="invisible"
|
|
app:backgroundTint="@color/button_blue"
|
|
app:elevation="6dp"
|
|
app:fabSize="normal"
|
|
app:layout_anchor="@id/bottom_sheet_details"
|
|
app:layout_anchorGravity="top|right|end"
|
|
app:pressedTranslationZ="12dp"
|
|
app:srcCompat="@drawable/ic_add_white_24dp" />
|
|
|
|
<View
|
|
android:id="@+id/empty_view2"
|
|
android:layout_width="56dp"
|
|
android:layout_height="306dip"
|
|
android:visibility="invisible"
|
|
app:layout_anchor="@id/fab_plus"
|
|
app:layout_anchorGravity="center_horizontal" />
|
|
|
|
<View
|
|
android:id="@+id/empty_view1"
|
|
android:layout_width="56dp"
|
|
android:layout_height="186dip"
|
|
android:visibility="invisible"
|
|
app:layout_anchor="@id/fab_plus"
|
|
app:layout_anchorGravity="center_horizontal" />
|
|
|
|
<View
|
|
android:id="@+id/empty_view"
|
|
android:layout_width="56dp"
|
|
android:layout_height="66dip"
|
|
android:visibility="invisible"
|
|
app:layout_anchor="@id/fab_plus"
|
|
app:layout_anchorGravity="center_horizontal" />
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab_camera"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleType="center"
|
|
android:tint="@color/button_blue"
|
|
android:visibility="invisible"
|
|
app:backgroundTint="@color/main_background_light"
|
|
app:elevation="6dp"
|
|
app:fabSize="mini"
|
|
app:layout_anchor="@id/empty_view1"
|
|
app:layout_anchorGravity="center_horizontal"
|
|
app:pressedTranslationZ="12dp"
|
|
app:srcCompat="@drawable/ic_photo_camera_white_24dp" />
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab_galery"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleType="center"
|
|
android:tint="@color/button_blue"
|
|
android:visibility="invisible"
|
|
app:backgroundTint="@color/main_background_light"
|
|
app:elevation="6dp"
|
|
app:fabSize="mini"
|
|
app:layout_anchor="@id/empty_view"
|
|
app:layout_anchorGravity="center_horizontal"
|
|
app:pressedTranslationZ="12dp"
|
|
app:srcCompat="@drawable/ic_photo_white_24dp" />
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab_commons_page"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleType="center"
|
|
android:visibility="invisible"
|
|
app:backgroundTint="@color/main_background_light"
|
|
app:elevation="6dp"
|
|
app:fabSize="mini"
|
|
app:layout_anchor="@id/empty_view2"
|
|
app:layout_anchorGravity="center_horizontal"
|
|
app:pressedTranslationZ="12dp"
|
|
app:srcCompat="@drawable/ic_commons_icon_vector" />
|
|
</android.support.design.widget.CoordinatorLayout>
|
|
|
|
|
|
<android.support.design.widget.NavigationView
|
|
android:id="@+id/navigation_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
app:headerLayout="@layout/drawer_header"
|
|
app:menu="@menu/drawer" />
|
|
|
|
</android.support.v4.widget.DrawerLayout> |