Comments (7)
Issue 5 has been merged into this issue.
Original comment by [email protected]
on 14 Nov 2011 at 9:47
from range-seek-bar.
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.
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.
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.
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.
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.
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)
- Code review request
- Implemented XML usage of widget. HOT 3
- Setting the Min And Max of RangSeeBar after onlistener is called HOT 2
- Code review request
- Need Listener like OnProgressChanged of Seekbar HOT 2
- how to set min and max progress just like calling setProgress(10) HOT 1
- Integer rounding bug.
- Code review request
- Code review request
- Provide widget via Maven
- provide thumbs also for xxhdpi devices
- InstantiationException: HOT 1
- Code review request
- How to use seekbar dynamic
- Code review request
- How to set new range limit? HOT 1
- is this possible to change progress interval to 500,1000,1500 instead of 1,2,3 in range seekbar..? HOT 3
- Displaying the minimum and maximum values by the side of thumbs say in textview HOT 3
- Code review request
- Move project to Github
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from range-seek-bar.