mirror of https://github.com/KokaKiwi/BarInsta
35 lines
1.3 KiB
XML
35 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ViewSwitcher xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/thumbnail_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center">
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/thumbnail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:actualImageScaleType="centerCrop"
|
|
app:viewAspectRatio="1" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="center"
|
|
app:srcCompat="@drawable/ic_video_24" />
|
|
</FrameLayout>
|
|
|
|
<com.google.android.exoplayer2.ui.StyledPlayerView
|
|
android:id="@+id/playerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
app:resize_mode="fit"
|
|
app:show_timeout="1000" />
|
|
</ViewSwitcher> |