开发者

android datepicker without datepicker dialog

I am currently trying to display a date(in the text format) selected using a "dat开发者_如何学运维epicker" on a textview, I want to update the textview as and when the date in the date picker is changed and I want to display the date in the long format ( eg. January 1 2011)

I tried looking up examples but the examples use the date picker dialog. Can anyone help me out?


Use getDayofMonth(), getMonth(), and getYear(), you can get the day, month and year set by user, then you can user switch statement to convert integer month to corresponding month. Is that what you are asking for?


Used onTimeChangedListener and onDateChangedListener for this..works!


hey i think you should look at this date picker

it is helpful

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜