apkfuckery/com.discord/res/layout/inline_media_view.xml
2020-07-08 16:44:49 +00:00

9 lines
No EOL
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<merge android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxHeight="500.0dip" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8.0dip" app:cardElevation="0.0dip"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.google.android.exoplayer2.ui.PlayerView android:layout_gravity="center" android:id="@id/inline_media_player_view" android:layout_width="fill_parent" android:layout_height="fill_parent" app:resize_mode="fit" app:surface_type="texture_view" app:use_controller="false" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/inline_media_image_preview" android:layout_width="fill_parent" android:layout_height="fill_parent" app:overlayImage="@drawable/drawable_overlay_image_square" app:placeholderImage="?colorBackgroundPrimary" style="@style/UiKit.ImageView" />
<ImageView android:layout_gravity="center" android:id="@id/inline_media_play_button" android:background="@drawable/drawable_circle_primary_900" android:padding="@dimen/uikit_spacing_medium" 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="@dimen/uikit_spacing_medium" 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="start|bottom|center" android:id="@id/inline_media_volume_toggle" android:background="@drawable/drawable_circle_primary_900" android:padding="@dimen/uikit_spacing_medium" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:src="@drawable/ic_volume_up_white_24dp" android:alpha="0.6" android:layout_marginStart="@dimen/uikit_spacing_medium" app:tint="@color/white" />
</merge>