标签: android try-catch android-edittext
我想根据焦点来改变edittext的某些属性。 这就是我到目前为止所拥有的。我这样做了吗?如果是这样我在try-catch语句中输入什么,我是新手使用它们
try{ textbox = (EditText) findViewById(getCurrentFocus().getId()); }catch(???){ return; }
答案 0 :(得分:0)
您最好将OnFocusChange Listeners添加到其他UI元素,并更改此侦听器的proreties ... this should work