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


基础教程推荐
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 大摇大摆的枚举 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 多个组件的复杂布局 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01