任何人都可以告诉我如何使用时间选择器在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