Replicating the iOS time picker in Android - android

I'm trying to write an app that would use the timepicker in Android, but I really would like to implement the one from iOS.
I've had a couple of leads, but haven't struck anything that has worked for me.
My problem is that the time picker is for time but I want to use mine for three different number values that can be chosen (no am/pm) so it seems like Pickers are the way to go, except that they were introduced in API 11.
I've found this blog that seems to give you some code for it, but I wasn't able to get it to work.
I also found android-wheel, but I don't know how to get the source for it. Can anyone steer me in the right direction for it?
The iOS timepicker looks like this:
Android wheel looks like this:
But, I haven't been able to figure out how to get the code for it.

The code is in the google code project - https://code.google.com/p/android-wheel/source/browse/

Download the source code from below link for various wheel example:
http://android-wheel.googlecode.com/svn/trunk/
Make sure that you have the svn plugins for download.
Thanks.

Related

Time range picker

I would like to build this google calendar’s timeslot-picker but unfortunately, there is unfortunately no similar online tutos or blogs explainging so. I have no single idea how to start it. Anyone can give me some hints which Flutter widgets I need to use to build it?
It also has two dots to make the timeslot longer or shorter..
I appreciate your help.

How to insert a custom view inline, inside an EditText?

Is anyone knows how to insert CardView-like views into an EditText in ANDROID inline? I did google up for a bit, and just found the library that is specifically for browsing contacts like the one in gmail android app.
I need to use it something like the tag TextBox in stackoverflow, when we are going to post / edit a question.
1 pic worth a thousand words, so here we go:
SNIP FROM SO
SNIP FROM GMAIL ANDROID APP
Maybe something like Chips like this. I have no problem of creating such View myself, the problem is to insert it into an EditText. Thank you.
P.S. My min sdk version is 19
UPDATE: Just saw how this is handled in SO android app. I think it's not bad tho, but still, I prefer inline solution if able.

Unable to use chart libraries in Android

Can any one please tell me how to create a bar-chart in Android?
After I did some searches on Google then I got the solution as, there are two approaches to achieve this concept.
Using
"Achartengine" or
"kiCharts" approach
As per the search every one is recommending to use "Achartengine approach" because it is fully open source, this is the official link to this approach that I found.
Then I downloaded that file from the above link and I imported it into Eclipse but its not supporting. When I am trying to run that project it's showing like the below images.
Even though if I try to do access or while clicking any options on the emulator (here shown in the second image) it's showing up the with same result as "sorry your app unexpectedly closed!. Please try again. Force Close"
I don't know whether I am going in a wright way or not.
Can any one please explain this concept by sending at least one example program done using the AChartEngine approach.
OR
Please at least send me the steps to create a BAR-CHART using the AChartEngine approach.
Thanks for your precious time!..

Android equivalent to Java's Swing JSpinner

I want to use a control similar to Swing JSpinner in an Android application. I know that Android has a widget called Spinner, but it's more like a combo box than a JSpinner. I've noticed that DatePicker and TimePicker widgets are using components that are just like JSpinner. The only problem is that I don't really want Date or Time. I just want to get some integer, say from 1 to 50, that user chooses. Is this possible? I've searched Android API reference in and out, but I couldn't find any clue on how to do this. Any help or hint would be much appreciated.
Thanks,
Tomislav
Well, the functionality for the TimePicker is provided by a hidden internal class named NumberPicker, which would probably be exactly what you wanted if only the folks at Google had made it available.
You might want to go to the android source code and lookup the source to android.widget.NumberPicker in the frameworks/base repository. (The repository treats it as if it were a publicly available class, though I see no sign of it in the released dev jars.)
I stole the spinner from Astrid, which stole it from Android's source.
Take a gander here:
http://github.com/ralphleon/TeaTimer/tree/master/src/goo/TeaTimer/widget/
Though my app is GPL, the number picker code is under the permissive Apache license!

calendar code required

Where can I get code to generate a calendar which displays dates in a proper grid?
Or can I get code for a calendar app so that I can make a few changes to it? It will help ma save a lot of time.
See my question (Link below). If you plan to use the existing code and slap some stuff on it then you are in for disappointment. Nevertheless, it's a great experience looking at these codes. Try it out.
How can I check out Android source code in Windows OS?

Categories

Resources