Ich denke, Ihr Problem ist mit dem Layout verbunden.
erstellen video_playing_with_thumbnail.xml
Add this in layout xml
****
<FrameLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/linearlayout_video"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="9">
<LinearLayout
android:id="@+id/laywork"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="7"
android:gravity="center">
<VideoView
android:id="@+id/displayer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:scaleType="fitXY" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2">
<android.support.v7.widget.RecyclerView
android:id="@+id/listphotosrecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</FrameLayout>
****
for thumbnail showing in recyclerView you can do:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:id="@+id/card_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp">
<RelativeLayout
android:layout_width="100dp"
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:padding="10dp">
<VideoView
android:id="@+id/videoView"
android:layout_width="100dp"
android:layout_height="80dp"
/>
<ImageView
android:id="@+id/deleteVideo"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_marginTop="50dp"
android:src="@drawable/cross_"
android:visibility="gone" />
</RelativeLayout>
</RelativeLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>
Dann eine eigene Adapter Klasse erstellen auf das Vorschaubild und zeigen in großen auf einen Blick klicken.
Ich definiere auf recycleview in Aktivität und definiere benutzerdefiniertes Layout für Artikel (Videobild, Bildansicht) – sumeet
Ich möchte recycleview wie youtube player verwenden Klick auf Ansicht Vollansicht anzeigen – sumeet
Sie wollen sagen, erstellen Sie Videobild mit recycleview und customelist Element anzeigen – sumeet