admin
2020-10-10 8039a1b2fbfa3471b6f726d3e839d7867c81a84f
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
package com.weikou.beibeivideo.ui.recommend;
 
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
 
import com.iBookStar.views.YmWebView;
import com.lcjian.library.RetainViewFragment;
import com.weikou.beibeivideo.R;
 
/**
 * 聚能赚小说fragment
 */
public class NovelJNZFragment extends RetainViewFragment {
 
    private FrameLayout fl_container;
 
 
    public static NovelJNZFragment newInstance() {
        NovelJNZFragment fragment = new NovelJNZFragment();
        return fragment;
    }
 
    @Override
    public void onCreateView(View contentView, Bundle savedInstanceState) {
        fl_container = contentView.findViewById(R.id.fl_container);
        YmWebView wv = new YmWebView(getContext());
        fl_container.removeAllViews();
        fl_container.addView(wv);
        wv.openBookStore();
    }
 
 
    @Override
    public int getContentResource() {
        return R.layout.fragment_novel;
    }
 
    @Override
    public void onResume() {
        super.onResume();
    }
}