I am new to android development.My requirement is to implement a number picker with range selector and the range values will be static as per the image.Is there any libraries or any other ways available to do this.I have researched a lot but cant get any thing related to this.
The section with green color can be scrolled to any where over the blue bar.And also the blue bar is scrollable itself having ranges from -40 to +40.
Please help
May be it can solve you problem
https://github.com/yahoo/android-range-seek-bar
Related
I am using RangeSlider in android ,I want display both thumb values. Can anyone help me how I can obtain it?
I want to setText as piece between 20 to 70
I don't think the library allows you to show this value simultaneously but you can get values of both the thumbs at all times from rangeSlider.values
You can then use a custom label on top of the thumbs to display the values at the same time. Other than that, several libraries are available which provide target tooltips on a screen.
I've been looking for a solution to my problem for weeks, and can't find out anything close to what I want. I need a big grid something at least 10000x10000 and even more if I can. The objective is to change the color of the cell that have been clicked. To do so users should be able to zoom in and click in one cell to modify it color. Then obviously zoom out.
I first thought to pick an image and make it clickable but to change the color of only 1 cell it would be impossible in an image.
Then I tried to do a grid with buttons inside and change their color on click, but way to long to create those inside the content page, same for labels.
Any suggestion ?
Thanks for reading
I don't believe you can do this with existing UI & Layout controls.
It will be extremely slow and hard to do.
You should use a graphic library such SkiaSharp. Here is a good tutorial to do it.
You might use pan & pinch gesture for zooming as well(howto).
Hello people i was wondering is it possible to set custom image for each star in rating bar like the following:
1 star for crying face
2 star for sad face
3 star for meh face
4 star for smiling face
5 star for happy face.
Just wondering how can i achieve this using custom rating bar styles.
Bingo!!
Have a look at this library starBar by badoo having one to ten stars with different color images like red orange yellow green u can change the images in resource to get your choice of bar.
I only found this solution after searching a lot hope it may work.
Hi I want to put the ranges on seek bar. I am able to run seekbar successfully. Even though on sliding i can get the values also. But on the top of it I have to set ranges as it is shown in image. Please let me know how can I do that. It would not be hardcoded because with seekbar I have given plus minus button also, so that If I click on plus button so right now range is from 0 to 100000 with 10000 interval. Then the range value will change to 100000 to 200000 and so on. so with that ranges should also change.
Please suggest.
Thanks in advance.
What you are looking for is simply indicators for the range, so it doesn't need to be part of your seekbar.
I would do it in the layout. Above the seek bar, create 10 textviews that are weighted evenly in a linearlayout.
Then just have some simple logic to update the text on these textviews when the user changes the range.
I'm trying to get the graph view horizontally centered inside my layout, but I'm not able to "remove" that left bar, which is actually where the "range" settings are.
This is a screenshot from the official demo app, showing this undesired effect which I'm also getting on my app.
Any ideas how to completely remove this?
Try:
plot.getGraphWidget().setMarginLeft(0);
That should actually get rid of everything on the left including the area where the range labels are currently being drawn so you may need to play with it to find the value that looks good with your range values / range font configuration.
Nick