android - How to set Am/Pm? -


i using date picker plugin android application. got plugin link https://github.com/brodyspark/phonegap-plugins/tree/master/android/datepicker. can tell me how set meridian time picker?

you have change last parameter in timepickerdialog's constructor (which named is24hourview) true false. it's line 101:

final timepickerdialog timedialog = new timepickerdialog(currentctx, timesetlistener, mhour,       mminutes, true); 

should be

final timepickerdialog timedialog = new timepickerdialog(currentctx, timesetlistener, mhour,       mminutes, false); 

Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -