I do a preview of the video as VKontakte, but unfortunately, there is a problem when changing to horizontal orientation. How to make so that the gradient and labels are superimposed only on the image, as in the first screenshot?
<FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/photo" android:layout_width="match_parent" android:layout_height="200dp" android:adjustViewBounds="true" android:scaleType="fitCenter"/> <View android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/gradient"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:orientation="vertical" android:paddingBottom="10dp" android:paddingLeft="@dimen/feed_item_profile_info_padd" android:adjustViewBounds="true"> <TextView android:id="@+id/title" android:layout_width="match_parent" android:layout_height="wrap_content" android:singleLine="true" android:text="Title" android:textColor="@color/cardview_light_background" android:textSize="15sp" android:textStyle="bold" /> <TextView android:id="@+id/views" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="100 просмотров" android:textColor="@color/vk_share_gray_line" android:textSize="14sp" android:textStyle="normal" /> </LinearLayout> </FrameLayout> Prior to this, I used the fitXY property in ImageView, but the image height is fixed. What are the implementation methods?

