当前位置: 代码迷 >> Android >> Android开发片断-TimePicker
  详细解决方案

Android开发片断-TimePicker

热度:96   发布时间:2016-05-01 17:27:59.0
Android开发片段-TimePicker

        TimePicker        tp.setIs24HourView(true);        tp.setCurrentHour(8);          tp.setCurrentMinute(30);          tp.setOnTimeChangedListener(new OnTimeChangedListener() {                public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {                  setTitle("[" + hourOfDay + ":" + minute + "]" + "["                          + view.getCurrentHour() + ":" + view.getCurrentMinute()                          + "]");                  h = hourOfDay;                m = minute;              }            });  
?
  相关解决方案