javascript - Show android native datepicker in a webview -
hi every programming guru
i building android webview app based , pick date datepicker. found mobi pick not compactible css output bad. don't want use phonegap. know possible call android native datepicker javascript when text input focus. show me samples or links tutorials have done please. in advance.
my html code
<form > <span> <input type="date" placeholder="start date : aaaa-mm-jj"> </span> <span> <input type="date" placeholder="end date : aaaa-mm-jj" > </span> <input type="button" value="filter" onclick="filter()" /> <div class="clear"> </div> </form>
i want display native android datepicker on date field focus.
public void opendatepickerui() { calendar c = calendar.getinstance(); year = c.get(calendar.year); month = c.get(calendar.month); day = c.get(calendar.day_of_month); //updatedisplay(); datepickerdialog dpd = new datepickerdialog(this, mdatesetlistener, year, month, day); dpd.show(); }
place in main activity webview. try this.
Comments
Post a Comment