Does anyone know anything about useful time range picker libraries that are open source? For example, the app Twilight uses some custom slider view for picking time ranges that I find very appealing (see bottom):
Is this open-source or are there similarly functional pickers? I could not find anything useful in the docs or on Android Arsenal.
Alternatively, I might build it from scratch. I was just wondering if there is not anything around yet.
You can try this slider from Material Design library and implements for youself:
https://material.io/develop/android/components/sliders
ps. check the section: "Setting a LabelFormatter"
An open source solution using a pop-up-dialog : TimeRangePicker
Related
I am interesting if anybody knows how to create such a number picker in Android app?
Is it a library or some deeper twicks on regular number picker? The most important is how to create this effect "roundness" made by smaller numbers below and above.
Thanks in advance!
I've already searched for libraries on github and looked for YouTube videos of how to create custom number spinner like that. But didn't find anything like that..
I'm trying to code a calendar page that highlights certain days with events on them. The calendar also needs to be able to disable certain dates from being clicked, such that the user is unable to select those dates. The designs of the calendar page are as follows:
I've looked for tutorials but was unable to find any that fits the requirements of my app, without using a library. Is there really no way to achieve this without the use of a library? And if I do have to use a library, how should I go about integrating it in this Xamarin application?
Any help or advice to point me in the right direction would be greatly appreciated. Thanks!
Your requirements can take time to implement, using a 3rd-party Library is what you might be looking for.
This library: XamForms.Controls.Calendar has some great controls as what I can see will suit your needs, over all it has a great documentation so give it a try!
Did you try the below link ?
https://github.com/rebeccaXam/XamForms.Controls.Calendar
There other UI library controls which you might be interested in
Xuni http://www.goxuni.com/672835-a-deep-look-at-the-new-xuni-calendar-control/
Syncfusion https://help.syncfusion.com/xamarin/sfcalendar/getting-started
Telerik http://www.telerik.com/xamarin-ui/calendar
I have created a custom calendar earlier which is very simple and show Month and Year view.You could give it a try.
You can check out the code from here:
https://github.com/bhavya27/BXCalendar
Blog: https://medium.com/#bhavyajoshi2793/custom-calendar-in-xamarin-for-android-ios-windows-578f1136daec
In my app, I have the following information which I want to display in the form of a graph.
Weight of a person.
Body temperature.
Date.
Now in my case, I want weight and body temperature on the y-axis parallel to each other and Date on the x-axis. So can anyone tell me which is the best android graph tool to do this? If possible with an example.
Regards
Anshuman
I have done quiet a research on this.If you are looking for drawing pie,histograms, bar or line graphs with 3D look I beliver ther is not such library available.You can use aichart for some 2D charts.Or final solution is you can start using the google Chart APIS , they are very good but they all are in web view and you need to have internet available on the phone/emulator.
There is a google group for achartengine, lots of good code is floating around there you can join it.
But I am afraid you will not get the 3D charting anywhere else.
if you thought of using the Adobe Flex (using AIR 3.1 or higher) you may get tremendous fullfillment of the requirement you are having in your head.You may get tempted to use it at once,but teh programming is in AS(Action Script)
have a look at the linked video, you will get teh idea of what I am talking about, but sadly you have to code in Action Script and not in Andorid PL.
I need a calender control in my application to show some "appointments" in a day view. As far as I see it, there are two ways: Write my own control which would be not that funny and to use com.android.calendar.
Can anyone tell me how I can use com.android.calendar.DayView or whether at all it is possible. One important thing: I do not want to show the appointments of the user but rather my own dynamical added ones.
I am talking about this control:
Just for information: I am aware that there are some similar questions on SO. However, I'm interested in com.adnroid.calendar.* and not as a general question :-).
That class is not in the SDK. It is undocumented. It is unsupported.
However, it is open source. You are welcome to copy it into your own project (and refactor it into your own package), but you will be on your own to figure out how to make it work.
FWIW, there is a similarly undocumented/unsupported/open source widget in the Google I|O 2011 app.
It is possible that there are other open source implementations of this sort of widget that are documented and supported, though I can't think of any. I will probably take one of these and use it as the basis for a documented/supported widget someday, if nobody beats me to it.
I really wanted to be able to re-use DayView, so I created the yadview project (https://code.google.com/p/yadview/). yadview is a fork of the DayView schedule in the AOSP Calendar app, but has been reworked significantly to allow for integration into any application.
Sample screenshot of an Activity with this View:
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!