How to add calendar in your Android App using Sketchware


Code is here:
DatePicker dp\u003dnew DatePicker (MainActivity.this);linear1.addView(dp);Calendar calendar\u003dCalendar.getInstance(); dp.init(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH),new DatePicker.OnDateChangedListener(){@Override public void onDateChanged(DatePicker datePicker, int i, int i1, int i2) {Toast.makeText(getApplicationContext(),datePicker.getDayOfMonth() + \"-\" +datePicker.getMonth() +  \"-\"+datePicker.getYear(),Toast.LENGTH_SHORT).show(); } });

Comments

  1. Nice.. bigo live apk is app for free download.
    application

    ReplyDelete
  2. Best youtube keyword research tool

    http://www.ultrashortner.com/p/top-keyword-chacker-tool.html

    ReplyDelete

Post a Comment

Popular posts from this blog

Play video on Sketchware

Enable download in Sketchware web browser