Commit 291d5a68 authored by Geoffrey Métais's avatar Geoffrey Métais

Organize layouts with keyboardNavigationClusters

parent b309bc28
......@@ -11,7 +11,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background_default_darker"
android:clickable="true">
android:clickable="true"
android:keyboardNavigationCluster="true"
tools:targetApi="o">
<ImageView
android:id="@+id/backgroundView"
android:layout_width="0dp"
......
......@@ -2,6 +2,7 @@
<org.videolan.vlc.gui.view.HackyDrawerLayout
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/root_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
......@@ -22,7 +23,9 @@
android:id="@+id/fragment_placeholder"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:keyboardNavigationCluster="true"
tools:targetApi="o" />
<android.support.v7.widget.ViewStubCompat
android:id="@+id/scan_viewstub"
......@@ -56,7 +59,9 @@
android:layout_gravity="start"
app:menu="@menu/navigation"
app:itemTextColor="?attr/navigationview_item_color"
app:itemIconTint="?attr/navigationview_item_color" />
app:itemIconTint="?attr/navigationview_item_color"
android:keyboardNavigationCluster="true"
tools:targetApi="o" />
<android.support.v7.widget.ViewStubCompat
android:id="@+id/audio_playlist_tips"
......
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="playlist"
......@@ -29,7 +29,9 @@
vlc:contentScrim="?attr/background_actionbar"
vlc:expandedTitleMarginEnd="64dp"
vlc:expandedTitleMarginStart="48dp"
vlc:layout_scrollFlags="scroll|exitUntilCollapsed" >
vlc:layout_scrollFlags="scroll|exitUntilCollapsed"
android:keyboardNavigationCluster="true"
tools:targetApi="o" >
<ImageView
android:id="@+id/playlist_cover"
android:layout_width="match_parent"
......@@ -55,7 +57,9 @@
android:id="@+id/container_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
vlc:layout_behavior="@string/appbar_scrolling_view_behavior">
vlc:layout_behavior="@string/appbar_scrolling_view_behavior"
android:keyboardNavigationCluster="true"
tools:targetApi="o" >
<org.videolan.vlc.gui.view.ContextMenuRecyclerView
android:id="@+id/songs"
android:layout_width="@dimen/default_content_width"
......
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android"
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:vlc="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:layout_height="match_parent">
<android.support.design.widget.CoordinatorLayout
android:id="@+id/coordinator"
android:layout_width="match_parent"
......@@ -14,7 +14,9 @@
<FrameLayout
android:id="@+id/fragment_placeholder"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:keyboardNavigationCluster="true"
tools:targetApi="o" />
<android.support.v7.widget.ViewStubCompat
android:id="@+id/scan_viewstub"
......
......@@ -2,6 +2,7 @@
<android.support.design.widget.AppBarLayout
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/appbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
......@@ -18,5 +19,7 @@
android:background="?attr/background_actionbar"
app:navigationIcon="?attr/homeAsUpIndicator"
app:titleMarginStart="@dimen/default_margin"
app:layout_scrollFlags="scroll|enterAlways" />
app:layout_scrollFlags="scroll|enterAlways"
android:keyboardNavigationCluster="true"
tools:targetApi="o" />
</android.support.design.widget.AppBarLayout>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment