button2.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if(hasFocus == true) { Log.d("forcus", String.valueOf(1)); }else{ Log.d("forcus",String.valueOf(0)); } } });
沒有留言:
張貼留言