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

8 comments:

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

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

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

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

    ReplyDelete
  5. 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
  6. This comment has been removed by the author.

    ReplyDelete
  7. 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

Call web services easily

get source code from here, Download