saiwu-bigkoo / android-quicksidebar Goto Github PK
View Code? Open in Web Editor NEW帮助快速查阅对应分组的侧边栏
帮助快速查阅对应分组的侧边栏
当点击的时候,发现每次都会向下进行偏移一些,导致不能准确的点击自己想要的索引,后发现,是计算索引高度时有点小问题, final int newChoose = (int) (y / mHeight * mLetters.size());为了让更多的人完美的使用,建议改进。
你好,我在使用你的项目过程中发现View显示A...Z错位了 看了源代码是你这里计算错误了。
mHeight = getHeight();
mWidth = getWidth();
应该是 mHeight = getMeasuredHeight();
mWidth = getMeasuredWidth();
请验证。
您好,请问您这个仓库方便开源吗~
用户在选择A-Z,单击选择的时候比如选择A其实获取的焦点是C了,这一点有点体验问题
比如我现在滑到K抬起手了,然后在这个侧边栏view的下面或者上面没有字母的空白处按下去,依然会出现K的tips提示,不知道是故意这样还是bug
能不能把顺序反过来,按从Z到A排序?
当我使用默认26个英文字母时,第一次加载之后显示异常,在手指触摸一次后就可以正常显示了,想与作者沟通一下,QQ:541280314,希望您与我沟通下。
当设置quickSideBarView.setLetters(customLetters),如果customLetters的长度只有几条,quickSideBarView顶部显示,不居中
按住滚动条往下滚动时,定位到最下面,感觉体验不好
用着是挺不错的, 但是我觉得readme还是写的详细一点的好(用法啥都), 不然引到项目里还要研究半天多麻烦, 最好把联动的java代码贴上去
quickSideBarView.setOnQuickSideBarTouchListener(new OnQuickSideBarTouchListener() {
private int getPositionByEn(String letter){
if(mCodes != null){
for (int i = 0; i < mCodes.size(); i++) {
CountryCode code = mCodes.get(i);
if(code.en.charAt(0) == letter.charAt(0)){
return i;
}
}
}
return 0;
}
@Override
public void onLetterChanged(String letter, int position, float y) {
recyclerView.scrollToPosition(getPositionByEn(letter));//联动
quickSideBarTipsView.setText(letter,position,y);//联动
}
@Override
public void onLetterTouching(boolean touching) {
if(!touching)
quickSideBarTipsView.setText("",0,0);//使文字消失
}
});
array.xml中字母表S误写成X了
如果页面有输入项,弹起键盘时会把侧边栏字母列表向上挤压导致侧边栏易位
例如,只有两个索引字母A,G时,分开显示不好看,能把A,G挨着显示,然后一起垂直居中就好点。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.