Skip to content

Commit

Permalink
fix dialog_axis_picker.xml issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince-kushwaha committed Sep 14, 2024
1 parent 564b8a2 commit 4956e5f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
42 changes: 26 additions & 16 deletions AnkiDroid/src/main/res/layout/dialog_axis_picker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,48 @@
-->

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
android:layout_height="match_parent">


<com.ichi2.ui.FixedTextView
android:id="@+id/axis_picker_selected_axis"
app:layout_constraintDimensionRatio="w,1:1"
android:layout_width="0dp"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:gravity="center"
android:textSize="24sp"
android:textAlignment="center"
android:text="@string/axis_picker_move_joystick"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="w,1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent">

<com.ichi2.ui.FixedTextView
android:id="@+id/axis_picker_selected_axis"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true"
android:text="@string/axis_picker_move_joystick"
android:textAlignment="center"
android:textSize="24sp" />

</LinearLayout>

<ScrollView
android:id="@+id/axis_picker_scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
>
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">

<LinearLayout
android:id="@+id/axis_picker_available_axes"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="0dp"/>
android:layout_height="match_parent"
android:orientation="vertical" />
</ScrollView>


</androidx.constraintlayout.widget.ConstraintLayout>
5 changes: 1 addition & 4 deletions AnkiDroid/src/main/res/layout/dialog_export_options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
android:id="@+id/export_extras_apkg"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:visibility="visible"
android:layout_marginTop="20dp"
android:visibility="gone"
android:fillViewport="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -50,7 +49,6 @@
android:id="@+id/export_apkg_schedule"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="kkl"
android:checked="true" />

<CheckBox
Expand Down Expand Up @@ -113,7 +111,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
android:visibility="gone"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/decks_selected_barrier">

Expand Down

0 comments on commit 4956e5f

Please sign in to comment.