TIMER PICKER:

agosto 17, 2018 doido 2.0 0 Comments


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

0 Comments: