| | |
| | | import android.widget.Toast; |
| | | |
| | | import com.androidquery.AQuery; |
| | | import com.baidu.mobads.nativecpu.IBasicCPUData; |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.viewpagerindicator.FoundTabPageIndicator; |
| | |
| | | import com.weikou.beibeivideo.BeibeiVideoAPI; |
| | | import com.weikou.beibeivideo.BeibeiVideoApplication; |
| | | import com.weikou.beibeivideo.ui.MyRetainViewFragment; |
| | | import com.weikou.beibeivideo.util.UmengEventUtil; |
| | | import com.weikou.beibeivideo.util.ad.AdUtil; |
| | | import com.weikou.beibeivideo.util.cache.DiskLruCacheManager; |
| | | import com.weikou.beibeivideo.util.downutil.StringUtils; |
| | | import com.yeshi.ec.library_baiducpu.R; |
| | | import com.yeshi.ec.library_baiducpu.adapter.BaiduCPUContentAdapter; |
| | | import com.yeshi.ec.library_baiducpu.entity.BaiDuCPUType; |
| | | import com.yeshi.ec.library_baiducpu.fragment.BaiDuCPUContentFragment; |
| | | |
| | |
| | | |
| | | @Override |
| | | public Fragment getItem(int position) { |
| | | Fragment fragment = BaiDuCPUContentFragment.newInstance(mlist.get(position), BaiDuCPUContentFragment.VIEW_TYPE_NEWS, AdUtil.getAdPid(getContext(), AdUtil.POSITION_SPLASH) != null); |
| | | Fragment fragment = BaiDuCPUContentFragment.newInstance(mlist.get(position), BaiDuCPUContentFragment.VIEW_TYPE_NEWS, AdUtil.getAdPid(getContext(), AdUtil.POSITION_SPLASH) != null, new BaiduCPUContentAdapter.IBaiDuCPUItemClickListener() { |
| | | |
| | | @Override |
| | | public void onClick(IBasicCPUData nrAd) { |
| | | UmengEventUtil.baiduCpuClick(getContext(), "news"); |
| | | } |
| | | }); |
| | | return fragment; |
| | | } |
| | | |