Fix scrolling issue where main content hides under toolbar

This commit is contained in:
Peter Stuifzand 2018-02-26 07:36:34 +01:00
parent 8a9ac868f1
commit 1bf3af94d8
2 changed files with 5 additions and 2 deletions

View File

@ -38,7 +38,9 @@
app:viewModel="@{viewModel}" app:viewModel="@{viewModel}"
app:client="@{client}" app:client="@{client}"
tools:layout_editor_absoluteY="-4dp" tools:layout_editor_absoluteY="-4dp"
android:layout_width="match_parent" /> android:layout_width="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
/>
<android.support.design.widget.FloatingActionButton <android.support.design.widget.FloatingActionButton
android:id="@+id/fab" android:id="@+id/fab"

View File

@ -16,10 +16,11 @@
<ScrollView <ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="56dp"
android:background="@color/colorPrimary" android:background="@color/colorPrimary"
android:fillViewport="false"
tools:context="eu.stuifzand.micropub.MainActivity" tools:context="eu.stuifzand.micropub.MainActivity"
tools:showIn="@layout/activity_main"> tools:showIn="@layout/activity_main">