blob: 32fe27e7fbe80ab77d77920aee0121db06c7e54e [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- We want to enter immersive mode whenever the NavigationFragment starts,
and exit immersive mode when it stops (e.g. user goes back to slide list).
However, this doesn't just work. Going back to the slide list causes
the slide list's toolbar to be shifted down. Between the toolbar and the
status bar, there is a gray strip that is the same height as the status
bar. We work around this mis-render by having the content
of the slide list go behind the toolbar. We then need to pad the content
of the slide list to be below the toolbar. -->
<android.support.design.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/slide_list_coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/snow_2"
android:label="@string/slide_list_title"
android:paddingTop="@dimen/toolbar_and_statusbar_height"
tools:context=".PresentationActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/slide_list"
android:name="io.v.syncslides.SlideListFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/play_presentation_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_margin="@dimen/fab_margin"
android:src="@drawable/ic_play_arrow_white_36dp"
android:visibility="invisible"
app:backgroundTint="@color/action_orange"
app:elevation="@dimen/fab_elevation"
app:fabSize="normal"/>
</android.support.design.widget.CoordinatorLayout>