自定义 EditText 与 ScrollView 类似的行为?
我需要制作一个滚动速度一样快的自定义 EditText,或者具有与滚动视图相同的滚动行为。
有人可以给我一些指示,我该如何做这个,或者有人已经做了吗?
如果有人可以发布一些代码或具有此功能的整个 CustomEditText,我将非常感激。
相信很多人都在搜索这个。
我尝试将 EditText 放入 ScrollView 中,但这会导致选择出现很多问题,...
也许有人也知道如何添加行号?
我希望能从外面的人那里得到答案;)。
提前致谢。
问候, 麦克风
i need to make a Custom EditText which scrolls as fast, or has the same scroll-behaviour like a scrollView.
Can someone give me some instructions how i can make this, or has someone made it already?
I would really appreciate if someone could post some Code, or a whole CustomEditText with this function.
I'm sure a lots of people search for this.
I tried to do the EditText into a ScrollView but this causes lots of problems with the selection, ...
Perhaps someone knows how to add line-numbers too?
I hope to get an answer from someone out there ;).
Thanks in advance.
Regards,
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有此自定义编辑文本的列表视图吗?如果你确实有,你可以尝试使用这个 setFastScrollEnabled(true);
Do you have a listview for this custom edittext? If you do have, you can try using this setFastScrollEnabled(true);