Skip to content

Commit

Permalink
add: custom preference layout for image selector and remover
Browse files Browse the repository at this point in the history
  • Loading branch information
oyeraghib committed Apr 4, 2024
1 parent 3e93f01 commit 0b77a51
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentStart="true"
android:layout_marginEnd="72dp"
android:id="@+id/deck_picker_background_image_selector">

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:src="@drawable/wallpaper_icon" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:textAppearance="?android:attr/textAppearanceListItem"
android:text="@string/choose_an_image" />

</LinearLayout>

<ImageView
android:paddingStart="16dp"
android:paddingEnd="32dp"
android:id="@+id/deck_picker_background_image_remover"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:src="@drawable/close_icon"
/>

</RelativeLayout>

0 comments on commit 0b77a51

Please sign in to comment.