任何人都可以告訴我如何使用時間選擇器在Android中的編輯文本框中設置當前時間。如何在android中設置當前時間來編輯文本框,而不使用時間選擇器?
edt_time=(EditText) findViewById(R.id.editText_time);
Time t = new Time();
java.text.Time tf = android.text.format.Time.getCurrentTimezone(getApplicationContext());
edt_time.setText(tf.format(t));
建議請。
感謝您的寶貴時間!..
你嘗試過什麼 – vinoth 2013-04-11 10:09:32
@vinoth PLZ再次訪問我的問題是 – prabu 2013-04-11 10:12:29
,通過硬編碼:d – Freak 2013-04-11 10:13:01