Implement Horizontal Date Picker in Android - android

I have a requirement to implement a horizontal date picker as shown in below image:
I have tried lots of libraries and googled it about for three days.
I customized this library but not able to style the selected item. i.e. Different color and size.
Please let me know, If is there any suggestion or sample code which can help me to implement the similar requirement.

HorizontalPicker is a custom-build Android View used for choosing dates (similar to the native date picker) but draws horizontally into a vertically narrow container. It allows easy day picking using the horizontal pan gesture.
resource :
https://github.com/jhonnyx2012/HorizontalPicker
https://github.com/GastricSpark/ScrollDatePicker

Related

Android Calender view color multiple dates and disable click

I am making an attendance app i want to highlight multiple dates where student is absent and also make calendar view not clickable.
only want to show calendar.
This question doesn't look, you have done any research.
However, you can use https://github.com/Applandeo/Material-Calendar-View
Pros:
Easily customizable. [I have used in 3-4 projects so far]
Fits in requirement like range picker, one-day selection (event based)
Lightweight library, few files/ less code. You can also strip off the unnecessary code of range picker and other if you want. As for me, the requirement was only One-day-picker
i want to highlight multiple dates where student is absent
You can create a list of object of EventDay which take the Calendar instance. You can pass it to the CalendarView. It will show the different event aka absentees in your case.
make calendar view not clickable
That's not the big deal, You can easily do that as CalendarView is a custom view itself.
This is my latest screenshot from one of my project. It work really well.

Scrollable Edittext like in DatePickerDialog

In my application I need to have a EditText where the values are numbers. I need to increase the value of EditText by scrolling up and need to decrease the value of EditText by scrolling down.
Example : DatePicker
The date changes by scrolling up and down. I need to have a EditText like in DatePicker.
Thanks in advance.
After some deep testing and using, this is a list of usable Picker widget libraries
Android Wheel http://code.google.com/p/android-wheel/
Number Picker from https://github.com/mrn/numberpicker
Date Slider (which can be easily adjusted) http://code.google.com/p/android-dateslider/
Horizontal slider widget http://blog.sephiroth.it/2012/01/28/android-wheel-widget/
Backport of Android 4.2 NumberPicker https://github.com/SimonVT/android-numberpicker
When kindly omitted the solution in accepted answer, these widget libraries are very usable if you need alter the design, and you like the way iOS does the wheel slider picker.

how can create android calender event view

i want to create a view just like image. How can i accomplish this.I have seach about this but not able to create just like this view. Can any body help me.
I have create the calender but the unable to show the bars
Thanks
You can use Yadview library from this link : https://code.google.com/p/yadview
It loads, lays out and displays events. yadview is intended to be more robust in handling of events from various sources, rendering differently.
It works really good for me!
there is a library that you can use:
https://github.com/roomorama/Caldroid
Embedded as a fragment or shown as dialog
Set min/max date. The date outside min/max range is marked as disabled
Set disabled dates
Select dates fromDate to toDate
Client can listen to various events when user interacts with Calendar
Customize look and feel

Making Custom date picker in android?

I am sure,I think my question is something different in android.I goggled 100s of sites i saw the date picker in android, all are same type, no one give the different date picker.
My Task is to design custom date picker. Please find this below screen shot.
https://docs.google.com/file/d/0B_c-SDSO63obZzVreHpmdnZBYzg/edit?usp=sharing
For that I goggled, I didn't find any solution. I think, For android solutions this is the best site.
coming to my date picker it is totally dialog box. In that red symbol,name,close mark,submit i can do it. But i want that sun,man,tue,web In red color and on the top month and year. In below dates with green color picker. so Please tell me how can I do that task.
All advices are accepted.
Thanks&Regards
Shankar
Clite
I can only suggest how I would have gone for such a calendar. By the UI it is clear that it has to come as a pop-up or to better say a dialog. Now you have to google the opensource calendars if any or just using the calendar API provided by java you can get the calendar for a month year etc. and move it across previous month by normal java function calls.
Now that you have got the data to populate in your calendar. You have to design a custom layout xml create ~30-40 boxes or a grid with dynamic textviews or a webview with <table>, <tr>, <td> the choice is completely yours.
AFAIK
If you can't find anything opensource then I would suggest you should do these things by the suggested approach.

Android: imageview and datepicker, Set image based on datepicker output

i have been developing iphone apps for a while now. I just started on android and have about half of my app done.
My app calls the native datepicker which the user selects the date then on the selection of the date a particular image is show in the format 2010-3-24, same as android output.
I have used the date picker tutorial to get the datepicker working and displaying the selected text in textview.
What i need is to display the particular image that corresponds to the selected date. The images are local to the app. I have looked for tutorials that would possibly help me out but so far no such luck. It is a very simple problem, i am just new to the platform.
So you would take the Date that comes back from the DatePicker and do some sort of conditional statement to determine what image to display in an ImageView.
What exactly are you having trouble with? Are you having trouble with the conditional statement that would determine the image to use? If so you need to give us more information on how you want that to work.
Are you having trouble getting an image to display in an ImageView? If so show us what code you have tried and we can help you with that.

Categories

Resources