Skip to content
Snippets Groups Projects
Commit e6bed3f5 authored by Dmitry's avatar Dmitry Committed by Nicolas Pomepuy
Browse files

NavigationRailView to the whole screen height

parent c527749b
No related branches found
No related tags found
1 merge request!1692Bump version
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.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:id="@+id/coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout 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">
<com.google.android.material.navigationrail.NavigationRailView
android:id="@+id/navigation_rail"
......@@ -17,73 +15,74 @@
app:layout_behavior="@string/appbar_scrolling_view_behavior"
app:menu="@menu/bottom_navigation" />
<include
layout="@layout/toolbar"
android:nextFocusLeft="@+id/ml_menu_search"
android:nextFocusRight="@+id/ml_menu_search"
android:nextFocusUp="@+id/ml_menu_search"
android:nextFocusDown="@+id/ml_menu_search"
android:nextFocusForward="@+id/ml_menu_search" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragment_placeholder"
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/navigation_margin"
android:keyboardNavigationCluster="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:targetApi="o" />
android:layout_height="match_parent">
<androidx.appcompat.widget.ViewStubCompat
android:id="@+id/scan_viewstub"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_anchor="@+id/navigation"
app:layout_anchorGravity="top"
android:layout_gravity="top"
android:layout="@layout/scan_progress" />
<include
layout="@layout/toolbar"
android:nextFocusLeft="@+id/ml_menu_search"
android:nextFocusRight="@+id/ml_menu_search"
android:nextFocusUp="@+id/ml_menu_search"
android:nextFocusDown="@+id/ml_menu_search"
android:nextFocusForward="@+id/ml_menu_search" />
<include layout="@layout/audioplayercontainer" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragment_placeholder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/navigation_margin"
android:keyboardNavigationCluster="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:layout="@layout/about_authors_activity"
tools:targetApi="o" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/default_margin"
app:useCompatPadding="true"
app:layout_dodgeInsetEdges="bottom"
app:srcCompat="@drawable/ic_fab_add"
android:tint="@color/grey50"
android:visibility="invisible"
app:borderWidth="0dp"
app:layout_anchor="@+id/navigation"
app:layout_anchorGravity="top|end"
android:layout_gravity="top|end"
app:layout_behavior="org.videolan.vlc.gui.helpers.FloatingActionButtonBehavior"
app:rippleColor="@color/orange50" />
<androidx.appcompat.widget.ViewStubCompat
android:id="@+id/scan_viewstub"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_anchor="@+id/navigation"
app:layout_anchorGravity="top"
android:layout_gravity="top"
android:layout="@layout/scan_progress" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="?attr/bottom_navigation_background"
app:elevation="16dp"
app:itemIconTint="@color/bottom_navigation_selector"
app:itemRippleColor="?attr/bottom_navigation_focus"
app:itemTextColor="@color/bottom_navigation_selector"
app:labelVisibilityMode="labeled"
app:layout_behavior="org.videolan.vlc.gui.helpers.BottomNavigationBehavior"
app:layout_insetEdge="bottom"
app:menu="@menu/bottom_navigation" />
<include layout="@layout/audioplayercontainer"/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/default_margin"
app:useCompatPadding="true"
app:layout_dodgeInsetEdges="bottom"
app:srcCompat="@drawable/ic_fab_add"
android:tint="@color/grey50"
android:visibility="invisible"
app:borderWidth="0dp"
app:layout_anchor="@+id/navigation"
app:layout_anchorGravity="top|end"
android:layout_gravity="top|end"
app:layout_behavior="org.videolan.vlc.gui.helpers.FloatingActionButtonBehavior" />
<androidx.appcompat.widget.ViewStubCompat
android:id="@+id/audio_player_tips"
android:layout="@layout/audio_player_tips"
android:layout_height="match_parent"
android:layout_width="match_parent" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:elevation="16dp"
app:itemRippleColor="?attr/bottom_navigation_focus"
app:labelVisibilityMode="labeled"
app:layout_behavior="org.videolan.vlc.gui.helpers.BottomNavigationBehavior"
app:layout_insetEdge="bottom"
app:menu="@menu/bottom_navigation" />
<androidx.appcompat.widget.ViewStubCompat
android:id="@+id/audio_player_tips"
android:layout="@layout/audio_player_tips"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</LinearLayout>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment