本文整理汇总了Java中com.jude.rollviewpager.RollPagerView类的典型用法代码示例。如果您正苦于以下问题:Java RollPagerView类的具体用法?Java RollPagerView怎么用?Java RollPagerView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RollPagerView类属于com.jude.rollviewpager包,在下文中一共展示了RollPagerView类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initViews
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
@Override
protected void initViews() {
mRollPagerView = (RollPagerView) findViewById(R.id.home_rollPagerView);
mRecyclerView = (RecyclerView) findViewById(R.id.home_recyclerView);
ImageView imageView = new ImageView(mActivity);
imageView.setAdjustViewBounds(true);
imageView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
}
示例2: initRollPagerView
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
private void initRollPagerView() {
mRollPagerView = (RollPagerView) findViewById(R.id.main_pager);
mPagerAdapter = new RollPagerAdapter(this, new ArrayList<VideoList>());
mRollPagerView.setAnimationDurtion(1500);// 设置切换动画时间
mRollPagerView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(int position) {
VideoList video = mPagerAdapter.getData(position);
if (video != null) {
String picUrl = "https:" + video.getPic();
VideoActivity.launch(MainActivity.this, video.getAid(), picUrl);
}
}
});
mRollPagerView.setAdapter(mPagerAdapter);
}
示例3: onCreateView
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
@Override
public View onCreateView(ViewGroup parent) {
mContext = parent.getContext();
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.include_viewpager, parent, false);
rollPagerView = (RollPagerView) view.findViewById(R.id.roll_view_pager);
//解决viewPager和swipeRefreshLayout的冲突
//...
//
initData();
return view;
}
示例4: BannerAdapter
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public BannerAdapter(RollPagerView viewPager, List<BannerList.ListEntity> data) {
super(viewPager);
this.data = data;
}
示例5: ImageLoopAdapter
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public ImageLoopAdapter(RollPagerView viewPager) {
super(viewPager);
}
示例6: LiveTypeBannerAdapter
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public LiveTypeBannerAdapter(RollPagerView viewPager, Context context, String type) {
super(viewPager);
this.mContext = context;
this.dataType = type;
}
示例7: initHeadView
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
private void initHeadView() {
LayoutInflater inflater = LayoutInflater.from(mActivity);
headView = inflater.inflate(R.layout.fragment_indext_header_view, null, false);
mRollPagerView = (RollPagerView) headView.findViewById(R.id.mRollPagerView);
tvHeadlines = ((TextView) headView.findViewById(R.id.tvHeadlines));
}
示例8: LoopPagerAdapter
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public LoopPagerAdapter(RollPagerView viewPager) {
this.mViewPager = viewPager;
viewPager.setHintViewDelegate(new LoopHintViewDelegate());
}
示例9: initView
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
private void initView() {
chao1 = (ImageView)getActivity().findViewById(R.id.chao1);
chao2 = (ImageView)getActivity().findViewById(R.id.chao2);
chao3 = (ImageView)getActivity().findViewById(R.id.chao3);
chao4 = (ImageView)getActivity().findViewById(R.id.chao4);
chao5 = (ImageView)getActivity().findViewById(R.id.chao5);
chao6 = (ImageView)getActivity().findViewById(R.id.chao6);
chao7 = (ImageView)getActivity().findViewById(R.id.chao7);
chao8 = (ImageView)getActivity().findViewById(R.id.chao8);
search_TextView = (TextView)getActivity().findViewById(R.id.search_TextView);
we_code_ImageView = (ImageView)getActivity().findViewById(R.id.we_code_ImageView);
mRollViewPager = (RollPagerView) getActivity().findViewById(R.id.roll_view_pager);
mRollViewPager.setAnimationDurtion(500);
mRollViewPager.setAdapter(new TestLoopAdapter(mRollViewPager));
mRollViewPager.setHintView(new IconHintView(getActivity(), R.drawable.point_focus, R.drawable.point_normal));
nvzhuang = (Button) getActivity().findViewById(R.id.nvzhuang);
nanzhuang = (Button) getActivity().findViewById(R.id.nanzhuang);
nvxie = (Button) getActivity().findViewById(R.id.nvxie);
nanxie = (Button) getActivity().findViewById(R.id.nanxie);
kuzi = (Button) getActivity().findViewById(R.id.kuzi);
maozi = (Button) getActivity().findViewById(R.id.maozi);
diannao = (Button) getActivity().findViewById(R.id.diannao);
shouji = (Button) getActivity().findViewById(R.id.shouji);
shipin = (Button) getActivity().findViewById(R.id.shipin);
qinglvzhuang = (Button) getActivity().findViewById(R.id.qinglvzhuang);
nvzhuang.setOnClickListener(this);
nanzhuang.setOnClickListener(this);
nvxie.setOnClickListener(this);
nanxie.setOnClickListener(this);
kuzi.setOnClickListener(this);
maozi.setOnClickListener(this);
diannao.setOnClickListener(this);
shouji.setOnClickListener(this);
shipin.setOnClickListener(this);
qinglvzhuang.setOnClickListener(this);
we_code_ImageView.setOnClickListener(this);
search_TextView.setOnClickListener(this);
BitmapFactory.Options options = new BitmapFactory.Options();
options.inPreferredConfig = Bitmap.Config.RGB_565;
chao1.setOnClickListener(this);
chao2.setOnClickListener(this);
chao3.setOnClickListener(this);
chao4.setOnClickListener(this);
chao5.setOnClickListener(this);
chao6.setOnClickListener(this);
chao7.setOnClickListener(this);
chao8.setOnClickListener(this);
}
示例10: TestLoopAdapter
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public TestLoopAdapter(RollPagerView viewPager) {
super(viewPager);
}
示例11: RollViewHolder
import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public RollViewHolder(View view) {
super(view);
mRollViewPager = (RollPagerView) view.findViewById(R.id.roll_view_pager);
}