Skip to content

Commit a7a20ba

Browse files
Prince-kushwahalukstbit
authored andcommitted
fix: export option dialog have text overlapping and checkbox not display correctly in landscape mode
1 parent 1493601 commit a7a20ba

File tree

1 file changed

+23
-27
lines changed

1 file changed

+23
-27
lines changed

AnkiDroid/src/main/res/layout/dialog_export_options.xml

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<ScrollView
3+
xmlns:android="http://schemas.android.com/apk/res/android"
34
xmlns:app="http://schemas.android.com/apk/res-auto"
45
xmlns:tools="http://schemas.android.com/tools"
6+
android:layout_width="match_parent"
7+
android:layout_height="match_parent">
8+
9+
<androidx.constraintlayout.widget.ConstraintLayout
510
android:layout_width="match_parent"
611
android:layout_height="wrap_content"
712
android:padding="16dp">
@@ -29,20 +34,16 @@
2934
tools:text="Include media" />
3035
</LinearLayout>
3136

32-
<ScrollView
33-
android:id="@+id/export_extras_apkg"
34-
android:layout_width="0dp"
35-
android:layout_height="wrap_content"
36-
android:visibility="gone"
37-
android:fillViewport="true"
38-
app:layout_constraintEnd_toEndOf="parent"
39-
app:layout_constraintStart_toStartOf="parent"
40-
app:layout_constraintBottom_toBottomOf="parent"
41-
app:layout_constraintTop_toBottomOf="@id/decks_selected_barrier">
4237

4338
<LinearLayout
44-
android:layout_width="match_parent"
39+
android:id="@+id/export_extras_apkg"
40+
android:layout_width="0dp"
4541
android:layout_height="wrap_content"
42+
android:visibility="gone"
43+
app:layout_constraintEnd_toEndOf="parent"
44+
app:layout_constraintStart_toStartOf="parent"
45+
app:layout_constraintBottom_toBottomOf="parent"
46+
app:layout_constraintTop_toBottomOf="@id/decks_selected_barrier"
4647
android:orientation="vertical">
4748

4849
<CheckBox
@@ -63,23 +64,18 @@
6364
android:layout_height="wrap_content"
6465
android:checked="true" />
6566
</LinearLayout>
66-
</ScrollView>
6767

68-
<ScrollView
69-
android:id="@+id/export_extras_notes"
70-
android:layout_width="0dp"
71-
android:layout_height="wrap_content"
72-
android:visibility="gone"
73-
android:fillViewport="true"
74-
app:layout_constraintEnd_toEndOf="parent"
75-
app:layout_constraintStart_toStartOf="parent"
76-
app:layout_constraintBottom_toBottomOf="parent"
77-
app:layout_constraintTop_toBottomOf="@id/decks_selected_barrier">
7868

7969
<LinearLayout
80-
android:layout_width="match_parent"
70+
android:id="@+id/export_extras_notes"
71+
android:layout_width="0dp"
8172
android:layout_height="wrap_content"
82-
android:orientation="vertical">
73+
android:visibility="gone"
74+
android:orientation="vertical"
75+
app:layout_constraintEnd_toEndOf="parent"
76+
app:layout_constraintStart_toStartOf="parent"
77+
app:layout_constraintBottom_toBottomOf="parent"
78+
app:layout_constraintTop_toBottomOf="@id/decks_selected_barrier">
8379

8480
<CheckBox
8581
android:id="@+id/notes_include_html"
@@ -104,7 +100,6 @@
104100
android:layout_width="match_parent"
105101
android:layout_height="wrap_content" />
106102
</LinearLayout>
107-
</ScrollView>
108103

109104
<LinearLayout
110105
android:id="@+id/export_extras_cards"
@@ -181,4 +176,5 @@
181176
android:layout_gravity="center"
182177
android:indeterminate="true" />
183178
</FrameLayout>
184-
</androidx.constraintlayout.widget.ConstraintLayout>
179+
</androidx.constraintlayout.widget.ConstraintLayout>
180+
</ScrollView>

0 commit comments

Comments
 (0)