Fill viewport in text editor

This commit is contained in:
Matéo Duparc 2022-01-14 15:50:42 +01:00
parent 95eed07719
commit b366fa1877
Signed by untrusted user: hardcoresushi
GPG Key ID: 007F84120107191E
2 changed files with 13 additions and 8 deletions

View File

@ -6,24 +6,27 @@
<include android:id="@+id/toolbar" layout="@layout/toolbar"/> <include android:id="@+id/toolbar" layout="@layout/toolbar"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<HorizontalScrollView <HorizontalScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="match_parent"
android:fillViewport="true">
<ScrollView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:fillViewport="true">
<EditText <EditText
android:id="@+id/text_editor" android:id="@+id/text_editor"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="top"
android:textSize="15sp" android:textSize="15sp"
android:background="@null" android:background="@null"
android:padding="5dp"/> android:padding="5dp"/>
</HorizontalScrollView>
</ScrollView> </ScrollView>
</HorizontalScrollView>
</LinearLayout> </LinearLayout>

View File

@ -8,12 +8,14 @@
<ScrollView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:fillViewport="true">
<EditText <EditText
android:id="@+id/text_editor" android:id="@+id/text_editor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="top"
android:textSize="15sp" android:textSize="15sp"
android:background="@null" android:background="@null"
android:padding="5dp"/> android:padding="5dp"/>