标签:获取 logs sch run over span runnable ext 方法
//edittext获取焦点后会瞬间失去,暂时使用这种笨方法解决(获取到焦点后过300ms再获取一次) public void requesFocus() { mEditName.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { AndroidUtil.runOnUIThread(new Runnable() { @Override public void run() { mEditName.requestFocus(); } }, 300); } } }); mEditPhone.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { AndroidUtil.runOnUIThread(new Runnable() { @Override public void run() { mEditPhone.requestFocus(); } }, 300); } } }); }
标签:获取 logs sch run over span runnable ext 方法
原文地址:http://www.cnblogs.com/wangyuehome/p/7700756.html