Tuesday, 16 April 2013

Date Picker Like iPhone in Android

in iPhone date picker like this and here is the demo of date picker like iPhone in android

make date piker in android same as iPhone in android using wheel view


Download Source Code

11 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Excellent man.. Thanks for such a different look and feel..This http://www.compiletimeerror.com/2013/07/android-date-picker-example-android.html might even help.. Have a look...

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Excellent man.. Thanks for such a different look and feel..This

    ReplyDelete
  5. u r grt bro ,its very helpfull for me ,thanks a lot yaar

    ReplyDelete
  6. i need to change the selected item color .Can you please help me how to achieve.
    Thanks,

    ReplyDelete
  7. Hi, i got one Big issue in this, when ever i select "February" month it is not displaying.
    Please check i need this.

    ReplyDelete
  8. I just solved the problem you got... Just give maxDays like this,


    calendar.set(Calendar.MONTH, month.getCurrentItem());
    int YearChanging= 1900+ year.getCurrentItem();

    switch(month.getCurrentItem()){
    case 3:
    case 5:
    case 8:
    case 10: maxDays= 30; break;

    case 0:
    case 2:
    case 4:
    case 6:
    case 7:
    case 9:
    case 11: maxDays=31; break;

    case 1:
    if ((YearChanging % 400 == 0) || ((YearChanging % 4 == 0) && (YearChanging % 100 != 0))) {
    maxDays =29 ;
    } else {
    maxDays = 28 ;
    }
    break;
    }

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. I have an sample app that has four spinning wheels with date, hour, minute and am(or pm). and i got d values (hour, minutes & am(or pm)) but i have one problem of getting days value because in my case did not get proper position so, please
    can anyone tell me, How can i get proper values from these wheels ?

    ReplyDelete