package com.yeshi.video.ui;
|
|
import android.os.Bundle;
|
import android.view.View;
|
import android.widget.TextView;
|
|
import com.lcjian.library.RetainViewFragment;
|
import com.yeshi.base.entity.video.VideoInfo;
|
import com.yeshi.video.R;
|
|
/**
|
* 小屏播放页-简介
|
* @author weikou2015
|
*
|
*/
|
public class VideoIntroductionFragment extends RetainViewFragment {
|
|
public static VideoIntroductionFragment newInstance(VideoInfo videoInfo) {
|
VideoIntroductionFragment videoIntroductionFragment = new VideoIntroductionFragment();
|
Bundle args = new Bundle();
|
args.putSerializable("video_info", videoInfo);
|
videoIntroductionFragment.setArguments(args);
|
return videoIntroductionFragment;
|
}
|
|
@Override
|
public int getContentResource() {
|
return R.layout.video_introduction_fragment;
|
}
|
|
@Override
|
public void onCreateView(View contentView, Bundle savedInstanceState) {
|
VideoInfo videoInfo = (VideoInfo) getArguments().getSerializable("video_info");
|
TextView tv_introduction = (TextView) contentView.findViewById(R.id.tv_video_introduction);
|
tv_introduction.setText(videoInfo.getIntroduction());
|
}
|
}
|