| is24HourView() | ใช้ตรวจสอบว่า เวลาที่ใช้เป็นแบบ 24 ชั่วโมงใช่หรือไม่ |
|---|
method:is24HourView ( )
return type:boolean
content:ใช้ตรวจสอบว่า เวลาที่ใช้เป็นแบบ 24 ชั่วโมงใช่หรือไม่
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); TimePicker time_picker = new TimePicker ( this ); if ( time_picker.is24HourView ( ) ) { time_picker.setIs24HourView ( false ); } setContentView ( time_picker ); } }