双处理滑块的android [英] Double handled slider android

查看:189
本文介绍了双处理滑块的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人有一些code,或者知道有$ C $下创建一个双处理滑块的地方。例如:

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆