Browse Source

Fix scrolling issue where main content hides under toolbar

master
Peter Stuifzand 4 years ago
parent
commit
1bf3af94d8
  1. 4
      app/src/main/res/layout/activity_main.xml
  2. 3
      app/src/main/res/layout/content_main.xml

4
app/src/main/res/layout/activity_main.xml

@ -38,7 +38,9 @@
app:viewModel="@{viewModel}"
app:client="@{client}"
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:id="@+id/fab"

3
app/src/main/res/layout/content_main.xml

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

Loading…
Cancel
Save