当前位置: 首页>>代码示例>>Java>>正文


Java RollPagerView类代码示例

本文整理汇总了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));
}
 
开发者ID:ymqq,项目名称:CommonFramework,代码行数:12,代码来源:MainTabHomeFragment.java

示例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);
}
 
开发者ID:Temoa,项目名称:Startor,代码行数:17,代码来源:MainActivity.java

示例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;
}
 
开发者ID:zhao-mingjian,项目名称:qvod,代码行数:12,代码来源:RollViewPagerItemView.java

示例4: BannerAdapter

import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public BannerAdapter(RollPagerView viewPager, List<BannerList.ListEntity> data) {
    super(viewPager);
    this.data = data;
}
 
开发者ID:Yuanhongliang,项目名称:HLOLI,代码行数:5,代码来源:BannerAdapter.java

示例5: ImageLoopAdapter

import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public ImageLoopAdapter(RollPagerView viewPager) {
    super(viewPager);
}
 
开发者ID:zhao-mingjian,项目名称:qvod,代码行数:4,代码来源:ImageLoopAdapter.java

示例6: LiveTypeBannerAdapter

import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public LiveTypeBannerAdapter(RollPagerView viewPager, Context context, String type) {
    super(viewPager);
    this.mContext = context;
    this.dataType = type;
}
 
开发者ID:yinyiliang,项目名称:RabbitCloud,代码行数:6,代码来源:LiveTypeBannerAdapter.java

示例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));
}
 
开发者ID:Jiansion,项目名称:XiZiQuan,代码行数:7,代码来源:IndexFragment.java

示例8: LoopPagerAdapter

import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public LoopPagerAdapter(RollPagerView viewPager) {
    this.mViewPager = viewPager;
    viewPager.setHintViewDelegate(new LoopHintViewDelegate());
}
 
开发者ID:Revival-liangjialiang,项目名称:ShoppingApp,代码行数:5,代码来源:LoopPagerAdapter.java

示例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);
}
 
开发者ID:Revival-liangjialiang,项目名称:ShoppingApp,代码行数:49,代码来源:principal_sheet_fragment.java

示例10: TestLoopAdapter

import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public TestLoopAdapter(RollPagerView viewPager) {
    super(viewPager);
}
 
开发者ID:Revival-liangjialiang,项目名称:ShoppingApp,代码行数:4,代码来源:principal_sheet_fragment.java

示例11: RollViewHolder

import com.jude.rollviewpager.RollPagerView; //导入依赖的package包/类
public RollViewHolder(View view) {
    super(view);
    mRollViewPager = (RollPagerView) view.findViewById(R.id.roll_view_pager);
}
 
开发者ID:Fukago,项目名称:TravelBan,代码行数:5,代码来源:AdAdapter.java


注:本文中的com.jude.rollviewpager.RollPagerView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。