Skip to content

Commit

Permalink
Simplified the layout, increased padding and touch target
Browse files Browse the repository at this point in the history
  • Loading branch information
neeldoshii committed Feb 7, 2024
1 parent 9e66582 commit 41ad51d
Showing 1 changed file with 24 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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="wrap_content"
android:descendantFocusability="blocksDescendants"
android:paddingTop="12dp"
android:paddingTop="8dp"
android:paddingLeft="32dp"
android:paddingRight="32dp"
android:paddingBottom="12dp">
android:paddingBottom="8dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="start|center_vertical"
android:layout_toStartOf="@+id/card_browser_my_search_remove_button">
<com.ichi2.ui.FixedTextView android:id="@+id/card_browser_my_search_name_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"/>
</LinearLayout>
<ImageButton android:id="@+id/card_browser_my_search_remove_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
<ImageButton
android:id="@+id/card_browser_my_search_remove_button"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="@color/transparent"
android:src="@drawable/ic_remove_circle_grey"
android:background="@color/transparent"/>
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<com.ichi2.ui.FixedTextView
android:id="@+id/card_browser_my_search_name_textview"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/card_browser_my_search_remove_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 41ad51d

Please sign in to comment.