Git Product home page Git Product logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Issue 5 has been merged into this issue.

Original comment by [email protected] on 14 Nov 2011 at 9:47

from range-seek-bar.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Hi,
This code is great and runs as intended in a test program. How can I access the 
thumbs positions in the Activity class so that I can print out the value on 
screen? Worth adding to RangeSeekbar.java a get() or a set() function to get 
the value/s or change the position/s from the calling class.
Thanks,
Ranger Joe

Original comment by [email protected] on 9 Mar 2012 at 7:10

from range-seek-bar.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
I think what you are looking for is getSelectedMinValue and getSelectedMaxValue.

Original comment by [email protected] on 9 Mar 2012 at 7:21

from range-seek-bar.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Ranger Joe,

You just need to add a Listener.  Then you can choose to get updates as the 
user is dragging the thumbs or just get one update when they let go.

Original comment by [email protected] on 9 Mar 2012 at 7:21

from range-seek-bar.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Activity class has the listener recommended on this site (slightly modified), 
but not sure how to find out info about the thumbs positions or the amount that 
is selected...
Formerly when using straight-up seekbar implementation, I had function like 
this in Activity class: 
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser).
"progress" helped me figure out how far I was. Then I converted that into 
hours:minutes. 

Attached listener in case someone willing to modify it for the xml 
implementation. Note that the xml implementation here puts the RangeSeekBar in 
the layout called "betweens". 

From the Activity class, I need to get the meaningful positions and also to be 
able to set the positions of the thumbs.

Original comment by [email protected] on 9 Mar 2012 at 8:11

Attachments:

from range-seek-bar.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
I'm not sure what has happened to the project since I submitted this code 
review request but this is what my app uses.

In layout xml file : 

<x.y.RangeSeekBar android:id="@+id/inouts" rangeseekbar:startingMin="10.0" 
rangeseekbar:startingMax="23.984" rangeseekbar:min="10.0" 
rangeseekbar:max="23.984" android:layout_width="fill_parent" 
android:layout_height="wrap_content" />


In activity onCreate : 

RangeSeekBar inouts = (RangeSeekBar) findViewById(R.id.inouts);
                inouts.setOnRangeSeekBarChangeListener(this);


In activity : 

public void rangeSeekBarValuesChanged(RangeSeekBar rangeSeekBar , Number 
minValue, Number maxValue)
{
}

Original comment by [email protected] on 9 Mar 2012 at 8:31

from range-seek-bar.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
Thank you so much for your re-submittal! 

Original comment by [email protected] on 9 Mar 2012 at 11:50

from range-seek-bar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.