Double handled slider android(双柄滑块android)
问题描述
我想知道是否有人有一些代码,或者知道有没有创建双柄滑块的代码的地方.示例:
I was wondering if anyone had some code, or knew of a place that has code for creating a double handled slider. Example :
我正在寻找类似的方法,使用双滑块在时间数组上搜索年龄范围,就像在照片中一样
I am looking to do something similar using a double slider to search for a range of ages on a time array , like in the photo
提前致谢
推荐答案
我设法自己构建了它......我遵循的想法与上面的答案不同.我创建了一些可以用手指在屏幕上拖动的项目,并且我固定了 Y 位置,使其只能从左到右移动.之后,我生成了表示进度的矩形(在旋钮之间和旋钮之外).这种技术的好处是您可以轻松地将滑块自定义为垂直或水平,或者如果您想在背景中放置自定义图片.来源在下面的链接中,如果有人有任何问题,请提出.链接:eclipse 项目
I managed to build it myself... the idea I followed was different from the answers above. I created some items that can be dragged on the screen with the finger, and I fixed the Y position so it can only move from left to right. After that, I generated rectangles that signify the progress (between knobs and outside them). The good thing about this technique is that you can easily customize the slider to be vertical or horizontal, or if you want to put a custom picture in the background. The source is in the link below, and if anyone has any questions please ask. link: eclipse project
这篇关于双柄滑块android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:双柄滑块android


- Eclipse 的最佳 XML 编辑器 2022-01-01
- GC_FOR_ALLOC 是否更“严重"?在调查内存使用情况时? 2022-01-01
- 如何使 JFrame 背景和 JPanel 透明且仅显示图像 2022-01-01
- 获取数字的最后一位 2022-01-01
- 在 Java 中,如何将 String 转换为 char 或将 char 转换 2022-01-01
- 转换 ldap 日期 2022-01-01
- 将 Java Swing 桌面应用程序国际化的最佳实践是什么? 2022-01-01
- java.lang.IllegalStateException:Bean 名称“类别"的 BindingResult 和普通目标对象都不能用作请求属性 2022-01-01
- 如何指定 CORS 的响应标头? 2022-01-01
- 未找到/usr/local/lib 中的库 2022-01-01