Делаю вывод превью у видео как вконтакте, но к сожалению, есть проблема при смене в горизонтальную ориентацию. Как сделать так, чтобы градиент и надписи накладывались только на изображение, как на первом скриншоте?
<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>
До это использовал свойство fitXY в ImageView, но высота у изображения фиксированная. Каковы методы реализации?