Skip to content

基于阿里VLayout封装的一款万能适配器,支持缓存池

Notifications You must be signed in to change notification settings

moushao/VLayout-master

Repository files navigation

效果图

使用方式:

  waterfallAdapter = new VBaseAdapter(mContext)//
            .setData(new ArrayList<WaterCargo>())//
            .setLayout(R.layout.recyc_water)//
            .setHolder(WaterHolder.class)//
            .setLayoutHelper(new StaggeredGridLayoutHelper(2, 8))//
            .setListener(new ItemListener<WaterCargo>() {
                @Override
                public void onItemClick(View view, int position, WaterCargo mData) {
                    Toast.makeText(mContext, "瀑布流布局,只卖" + mData.getPrice(), Toast.LENGTH_SHORT).show();
                }
            }); 

VLayout-master.apk下载

简书详细教程

更多交流方式,请加群:541144061

About

基于阿里VLayout封装的一款万能适配器,支持缓存池

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages