Giter Club home page Giter Club logo

multityperecyclerviewadapter's Issues

使用GridLayoutManager再添加HeadView 第一行的spanSize会失效

我大概是这么判断的
final GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2, GridLayoutManager.VERTICAL, false);
layoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@OverRide
public int getSpanSize(int position) {
MutiTypeTitleEntity entity=adapter.getItem(position);
if (entity instanceof ItemEntity1){
return 1;
}
return layoutManager.getSpanCount();
});

在未给RecycleView添加HeadView的情况下分类的头能占满一行,但是添加了headview 第一个类型的标题就会和内容挤在一起

加油

一看就是做实际项目中总结出来的, 文档在完善些就好了。
以下这些依赖哪些是必须加的,哪些又是可选择的? 能说明以下吗?

compile project(libs.MTRVA_File)
compile project(libs.MTRVA_File_Anno)
annotationProcessor project(libs.MTRVA_File_Compiler)
compile libs.MTRVA_Anno
compile libs.MTRVA
apt libs.MTRVA_Compiler

看了圈感觉还有点晕

entity必须得实现MultiHeaderEntity或者MultiTypeEntity?那就加个BaseEntity来实现,那么什么时候用MultiHeaderEntity?什么时候用MultiTypeEntity?以及entity中得指定id?之前一直是在用vlayout,但是局部刷新不好使。想看着作者的demo来移植到项目中,感觉还是蛋疼啊

使用成本较高

老实说,这个库应该可能比较优秀,但是光看使用说明书就感觉接入成本很高,要自己写不少文件,我只是需要一个类似ExpandableGridview的效果,能折叠,能设置列数,不卡顿,支持单数据刷新。找到这个库希望快速接入并修改成我自己想要的效果,结果发现需要处理的东西实在不少,而且貌似不支持动态设置level(可能没看完整)
作为一个库而言,需要用户关注的其实是配置,门槛尽可能低,实在没法低就搭个常用的台阶,比如实现常用的helper而不是作为例子仅供参考。建议未必合理,只是随口发发牢*

某个item中可能有几种布局,可以支持吗?

比如一个 RecyclerView 中包含 新闻, 购物 等几种 itemType,
然后在 新闻 item 中又会包含几种布局的类型(layout), 购物 item 中也会包含几种布局的类型(layout);
看示例代码中同一个item 中可以设置 head, content, foot 的布局文件, content 中可以再设置几个 layout 吗?

关于分组的实现

你好,请问下如果需要分组的话是得注册多个level?使用sticky必须得设置header对吗?

被README和仓库大小吓走了

仓库170M了无法想象没代理的人怎么clone的;
README 太简单了没有效果预览;
功能又强大到让人害怕稳定性;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.