Comments (7)
嗯 确实不是很方便的~
当然犹豫了下,使用的是现在自己强转的方式;
想不强转的话:Adapter就需要3个泛型了:
class YourAdapter extends IndexableAdapter<YourEntity,TitleVH,ContentVH>{
}
这样使用者写起来感觉有点怪怪的,所以选用了 自己强转的方式,当然这个选择只是个人想法,可能确实欠妥 :)
from indexablerecyclerview.
@YoKeyword 嗯嗯,希望可以弄那种类似QQ音乐 里面的歌手 列表那种风格也就是只要一个title,而不是每一个都有title
from indexablerecyclerview.
为什么设置data没有回调呢?奇怪啊,你的demo是正常的,我这里自己写的就不正常了。我都断点调试了,就是回调没走
from indexablerecyclerview.
调试看了一下为什么观察者没注册成功
from indexablerecyclerview.
问题出来了,不过 逻辑要写严谨一点哦、比如观察者没注册 报错之类的
from indexablerecyclerview.
mFuture = mExecutorService.submit(new Runnable() {
@OverRide
public void run() {
final ArrayList datas = transform(mIndexableAdapter.getItems());
if (datas == null) return;
getSafeHandler().post(new Runnable() {
@Override
public void run() {
mRealAdapter.setDatas(datas);
mIndexBar.setDatas(mShowAllLetter, mRealAdapter.getItems());
if (mIndexableAdapter.getIndexCallback() != null) {
mIndexableAdapter.getIndexCallback().onFinished(datas);
}
}
});
}
});
执行到这里 没法调试了,没有数据是不可能的。
from indexablerecyclerview.
转#32;
最近个人闲余时间较少,开源方面重心在Fragmentation上,该库暂时没有更细致的维护打算,不过欢迎提PR,一起完善该库~
from indexablerecyclerview.
Related Issues (20)
- 能否提供api外部直接设置索引Bar数据
- setDatas 时能不刷新 header吗?
- 土耳其语言首字母为I的识别出来不是i,希望作者能修复下。
- 1.3.0引入了重复的tinypinyin-android库(这个库没有被用到,工程里应该在sample project引入,而不是在lib里引入),而且PinyinUtil里面引入了的com.github.promeg.pinyinhelper.Pinyin更新不下来 HOT 1
- notifyItemChanged 能否暴漏出来
- 一个很离奇的XML崩溃报错 HOT 1
- 关于 拼音库【 TinyPinyin 】 依赖问题,可以参考下
- 滑动后 字母吸顶不显示 是什么鬼 HOT 1
- 请问 布局item上添加button按钮 点击请求网络 如何拿到当前item的信息作为参数上传?
- 请问怎么获取右侧indexbar
- 默认没有按照首字母排序
- jcenter跑路啦,有迁移计划吗 HOT 1
- 想要在适配器中获取元素的下标 position,怎么操作?
- 1.30版本 刷新方法被注释
- 大神,拼音的jar包有时候根本依赖不下来啊
- 热门和 定位顺序问题
- 无法滑动,我使用的是LinearLayoutManager HOT 1
- tinypinyin.lexicons 依赖冲突 HOT 4
- 关于header定制不灵活的建议
- 可以隐藏没有数据的 索引么
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indexablerecyclerview.