获取EditText的值

作者:追风剑情 发布于:2015-1-23 21:59 分类:Android

  1. //在Activity中
  2. EditText editText1 = (EditText)findViewById(R.id.editText1);
  3. text = editText1.getText();
  4. Toast.makeText(context, text, duration).show();

标签: Android

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号