码迷,mamicode.com
首页 > 移动开发 > 详细

Android双向seekbar

时间:2015-08-20 10:42:15      阅读:1014      评论:0      收藏:0      [点我收藏+]

标签:android   双向   seekbar   

效果

技术分享

用法

<span style="font-size: 24px;"> </span><span style="font-size:14px;">private void init() {

        sb_user = (SeekBarPressure) findViewById(R.id.sb_user);
        sb_user.setProgressLowInt(2);
        sb_user.setProgressHighInt(4);
        sb_user.setOnSeekBarChangeListener(new SeekBarPressure.OnSeekBarChangeListener() {
            @Override
            public void onProgressChanged(SeekBarPressure seekBar, double progressLow, double progressHigh, int mprogressLow, int mprogressHigh, double max, double min) {
                myprogressLow = String.valueOf((int) progressLow);
                myprogressHigh = String.valueOf((int) progressHigh);
                LogUtils.d("mark===progressLow=" + progressLow);
                LogUtils.d("mark===progressHigh=" + progressHigh);
            }
        });</span>

下载地址

http://download.csdn.net/detail/u010785585/9026579

版权声明:本文为博主原创文章,未经博主允许不得转载。

Android双向seekbar

标签:android   双向   seekbar   

原文地址:http://blog.csdn.net/linglongxin24/article/details/47802641

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!