1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-09-28 13:47:30 +00:00
BarInsta/app/src/main/res/layout/item_feed_video.xml

52 lines
1.9 KiB
XML
Raw Normal View History

2020-07-01 17:08:28 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/videoHolder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2020-07-01 17:08:28 +00:00
<include
android:id="@+id/item_feed_top"
layout="@layout/item_feed_top" />
2020-07-01 17:08:28 +00:00
<ViewSwitcher
android:id="@+id/view_switcher"
2020-07-01 17:08:28 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2020-07-01 17:08:28 +00:00
<!--<androidx.appcompat.widget.AppCompatImageView-->
<!-- android:id="@+id/thumbnail"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:adjustViewBounds="true"-->
<!-- android:scaleType="fitCenter"/>-->
<FrameLayout
android:id="@+id/thumbnail_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:actualImageScaleType="fitCenter" />
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
app:srcCompat="@drawable/exo_controls_play" />
</FrameLayout>
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/playerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:show_timeout="1000" />
</ViewSwitcher>
<include
android:id="@+id/item_feed_bottom"
layout="@layout/item_feed_bottom" />
2020-07-01 17:08:28 +00:00
</LinearLayout>