-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathFriendsPlayerFragment.java
More file actions
50 lines (39 loc) · 1.46 KB
/
FriendsPlayerFragment.java
File metadata and controls
50 lines (39 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.flyjingfish.openimage.openImpl;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.flyjingfish.openimage.R;
import com.flyjingfish.openimagefulllib.VideoPlayerFragment;
import com.flyjingfish.openimagelib.photoview.PhotoView;
import com.flyjingfish.openimagelib.widget.LoadingView;
public class FriendsPlayerFragment extends VideoPlayerFragment {
protected FriendsVideoPlayer friendVideoPlayer;
private View rootView;
@Override
protected PhotoView getSmallCoverImageView() {
return friendVideoPlayer.getSmallCoverImageView();
}
@Override
protected PhotoView getPhotoView() {
return friendVideoPlayer.getCoverImageView();
}
@Override
protected View getItemClickableView() {
return friendVideoPlayer;
}
@Override
protected LoadingView getLoadingView() {
return (LoadingView) friendVideoPlayer.getLoadingView();
}
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
rootView = LayoutInflater.from(requireContext()).inflate(R.layout.fragment_friends_play,container,false);
friendVideoPlayer = rootView.findViewById(R.id.video_player);
videoPlayer = friendVideoPlayer;
return rootView;
}
}