Use layout constraints instead of static height

This commit is contained in:
Abd El-Twab M. Fakhry 2024-05-18 16:47:41 +03:00
parent cf21b9feaf
commit c02ceda22f
No known key found for this signature in database
GPG Key ID: EF99158DC5D4CAE5
1 changed files with 4 additions and 2 deletions

View File

@ -13,11 +13,12 @@
<ImageView <ImageView
android:id="@+id/itemThumbnailView" android:id="@+id/itemThumbnailView"
android:layout_width="90dp" android:layout_width="90dp"
android:layout_height="51dp"
android:layout_alignParentStart="true" android:layout_alignParentStart="true"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_marginRight="@dimen/video_item_search_image_right_margin" android:layout_marginRight="@dimen/video_item_search_image_right_margin"
android:layout_alignTop="@id/itemTitleView"
android:layout_alignBottom="@id/itemUploaderView"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:src="@drawable/placeholder_thumbnail_playlist" android:src="@drawable/placeholder_thumbnail_playlist"
tools:ignore="RtlHardcoded" /> tools:ignore="RtlHardcoded" />
@ -45,9 +46,10 @@
<ImageView <ImageView
android:id="@+id/itemHandle" android:id="@+id/itemHandle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="51dp"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_alignTop="@id/itemTitleView"
android:layout_alignBottom="@id/itemUploaderView"
android:contentDescription="@string/detail_drag_description" android:contentDescription="@string/detail_drag_description"
android:paddingLeft="@dimen/video_item_search_image_right_margin" android:paddingLeft="@dimen/video_item_search_image_right_margin"
android:scaleType="center" android:scaleType="center"