Widget - Time Picker Example

TimePicker tp=new TimePicker (MainActivity.this);

LinearLayout.LayoutParams lp=new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT);
tp.setLayoutParams(lp);
linear1.addView(tp);
tp.setOnTimeChangedListener(new TimePicker.OnTimeChangedListener(){
@Override public void onTimeChanged(TimePicker timePicker, int i, int i1) {Toast.makeText(getApplicationContext(),"Time is "+i+":"+i1,Toast.LENGTH_SHORT).show();
}});

Komentar

Cara pembuatan Apps paling Populer

Create Stopwatch App in Android using Sketchware

TextInputLayout in Sketchware

How to find and​ highlight a word in a text field in Sketchware?

A Flash Light App in Sketchware

How to enable download in webview in Sketchware apps?

Intent - Open File By Type

Code for implementing Notifications in Sketchware

How to share an image from Drawable folder?

ActionBar back button

Animation Transtition Animation