Selecting a date using custom calenderview - java

screenshot1
screenshot2
I want a custom calenderview like these images and when we tap on any date it should show the selected date. I have done a lot research on this but I could not find any way to make a calenderview like this. please help me out, Thanks in adavnce.

Take a look at this library - https://github.com/prolificinteractive/material-calendarview
It's got exactly what you need.

Use DateTimePicker library, more details here :
DateTimePicker

Related

GWT data display

As a means to display information on a website developed mainly with GWT and EXT-GWT, i am using a HTMLLayoutContainer. So far, the information it is displayed correctly, but it is too harsh or rough to display this way, meaning rough, not nice to see.
So the question is : Is there any other and nicer way to display (print, draw) information with GWT?.
If so, how?
You need to work on CSS
GWT CSS Ref

how to customize android default classes(datepicker,numpicker,etc)

I want to make a custom date-picker for android and I need to change something in datepicker.class file in android.widget package. In fact, I want to change the year and month for solar hijri calendar.
I found source code of datepicker.java in http://alvinalexander.com/java/jwarehouse/android/core/java/android/widget/DatePicker.java.shtml - but I don't know how to change and replace it with default android class. Does anybody know how to do this?
The dirty way to do this is to copy the source code for the datepicker class, and rename/modify it as your own class for the hijri calendar. You could then import or extend this new class to work with your code.
You could use this custom view which implement jalali date on it
https://github.com/alibehzadian/PersianDatePicker
you could just copy the classes ,layout , values on it and paste them in your project and now you have datepicker for jalali date jsut follow the usage instructions on the provided link

Customise primefaces calender To show holidays in custom style

I want to show holidays and weekends (Fridays & Saturdays) in custom style. Is there any attribute provided by PrimeFaces to do this, or what should I do to build a custom component from existing <p:calendar>.
Without using javascript or jquery.
Thanks in advance.
Regards,
Sunny
I think can achieve without writing a custom core custom component.
Create a composite component and use java script to highlight the custom dates you are interested in.
onClick(call the below function on P:cal)
function updatedaysHighlighter(){
var rows = document.getElementById('ui-datepicker-div').getElementsByTagName("tr");
if(days.length>1) {
alert(days[4].innerHTML);
}
}
You can try playing with td and update the class value for each td as like you want.
Its not supported by primeface...
There is a New Feature Request about this exact feature , and one of the comments requested holidays too
You can vote for it Issue 1805: New feature for Calendar: receive a list of Dates to highlight them
But in the meanwhile you better do it yourself using jquery (highlight holidays in datepicker jquery)

Java SWT DateTime - Get Selection?

I've got a DateTime (SWT.TIME) and want to know if the hours or minutes or seconds are selected.
I would like to get this information because I want that the User can scroll the mouse wheel in order to change the selected values accordingly.
Unfortunately I couldn't find any way to get the selected element of the DateTime Control. Does anybody have an idea?
DateTime provides many methods for getting the selected date. Like getHours, getMinutes, getDay, and so on. It's unclear to me what's your exact question, but appropiate setters are there as well.

how to set change the date picker's UI

hi the following image is the UI of the date picker i am currently using
But i want the date picker to be as follows
the second one is the image of an iPhone App. how can i get like this. Is there any possibilities. pls help me....
Take a look at this..Click Download and Download the Wheel zip..

Categories