依赖:
compile'com.jude:rollviewpager:1.4.6'
使用:
代码:
RollPagerViewmRollViewPager= (RollPagerView) view.findViewById(R.id.rlv_roll);
LunBoAdapter lunBoAdapter =newLunBoAdapter(mRollViewPager,indexList,getActivity());
mRollViewPager.setAdapter(lunBoAdapter);
intheight = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,150,getActivity().getResources().getDisplayMetrics());
mRollViewPager.setLayoutParams(newViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,height));