//private static final String TAG = "Frag02";
private Banner banner;
@Override
protected int bindLayout() {
return R.layout.frag02;
}
@Override
protected void bindEvent() {
}
@Override
protected void initData() {
if (HttpUtils.isNetworkConnected(getActivity())){
HttpUtils.httpAsTask("https://www.apiopen.top/meituApi?page=1", new HttpUtils.CallBackA() {
@Override
public void getData(String s) {
Gson gson = new Gson();
BannerBean list = gson.fromJson(s, BannerBean.class);
final List<BannerBean.DataBean> data = list.getData();
// ArrayList<two> list = four.getResult().getItemList();
banner.setImages(data);