9 lines
2.6 KiB
XML
9 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxHeight="500dp" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8dp" app:cardElevation="0dp">
|
|
<com.google.android.exoplayer2.ui.PlayerView android:layout_gravity="center" android:id="@+id/inline_media_player_view" android:layout_width="match_parent" android:layout_height="match_parent" app:resize_mode="0" app:surface_type="2" app:use_controller="false"/>
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/inline_media_image_preview" android:layout_width="match_parent" android:layout_height="match_parent" android:contentDescription="@string/image" app:overlayImage="@drawable/drawable_overlay_image_square" app:placeholderImage="?attr/colorBackgroundPrimary" style="@style/UiKit_ImageView"/>
|
|
<ImageView android:layout_gravity="top|right|center_vertical|center_horizontal|center|end" android:id="@+id/inline_media_gif_indicator" android:visibility="gone" android:layout_width="36dp" android:layout_height="22dp" android:layout_marginTop="8dp" android:src="@drawable/gif" android:importantForAccessibility="no" android:layout_marginEnd="8dp"/>
|
|
<ImageView android:layout_gravity="center" android:id="@+id/inline_media_play_button" android:background="@drawable/drawable_circle_primary_900" android:padding="8dp" android:visibility="gone" android:layout_width="@dimen/embed_play_button_width" android:layout_height="@dimen/embed_play_button_width" android:src="@drawable/ic_play_arrow_24dp" android:scaleType="fitXY" android:contentDescription="@string/play_full_video" android:alpha="0.6" app:tint="@color/white"/>
|
|
<ProgressBar android:layout_gravity="center" android:id="@+id/inline_media_loading_indicator" android:background="@drawable/drawable_circle_primary_900" android:padding="8dp" android:layout_width="@dimen/embed_play_button_width" android:layout_height="@dimen/embed_play_button_width" android:indeterminate="true" android:layout_centerInParent="true" android:alpha="0.6" android:indeterminateTint="@color/white"/>
|
|
<ImageView android:layout_gravity="bottom|left|center_vertical|center_horizontal|center|start" android:id="@+id/inline_media_volume_toggle" android:background="@drawable/drawable_circle_primary_900" android:padding="8dp" android:layout_width="32dp" android:layout_height="32dp" android:layout_marginBottom="8dp" android:src="@drawable/ic_volume_up_white_24dp" android:alpha="0.6" android:layout_marginStart="8dp" app:tint="@color/white"/>
|
|
</merge>
|