The thing is, I want to show the picture above the video player. The video player is in the fragment, and the fragment is called in MainActivity , and in main_layout.xml is the FrameLayout itself in full screen for the player and above it ImageView . It does not work, that is, the player plays but the picture itself is not.
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/container"> </FrameLayout> <ImageView android:layout_width="400dp" android:layout_height="200dp" app:srcCompat="@drawable/app_icon_your_company" android:id="@+id/imageView" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_alignParentBottom="true" android:layout_marginLeft="20dp" android:layout_marginStart="20dp" android:layout_marginBottom="20dp"/> </RelativeLayout> I tried to use the Fragment component instead of calling the Fragment in MainActivty and register the fragment class in xml, the player works again without a picture. I even tried to insert a picture into the markup of the player itself, anyway, it does not see it.
Question: what am I doing wrong?
I use the JieCaoVideoPlayer library
app:srcCompat? - Yuriy SPb ♦