Skip to content

Commit

Permalink
fix: axis picker layout is not displaying correctly in landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince-kushwaha committed Sep 17, 2024
1 parent a8abb47 commit 64e11fd
Showing 1 changed file with 26 additions and 16 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>

0 comments on commit 64e11fd

Please sign in to comment.