Improve scrolling behaviour for the compose view

This commit is contained in:
Christian Basler 2018-02-19 23:38:40 +01:00
parent 1da0674857
commit 39ad5e8baf

View File

@ -1,7 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -50,11 +56,13 @@
<EditText <EditText
android:id="@+id/body_input" android:id="@+id/body_input"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="start|top" android:gravity="start|top"
android:hint="@string/compose_body_hint" android:hint="@string/compose_body_hint"
android:inputType="textMultiLine|textCapSentences" android:inputType="textMultiLine|textCapSentences"
android:scrollbars="vertical" /> android:scrollbars="none"
tools:ignore="InefficientWeight" />
</LinearLayout> </LinearLayout>
</ScrollView>