2024-08-03 04:05:41
2024-08-03 07:00:01
不是啊,在layout里面写的UI。代码就写了
this.finishPoint.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if( hasFocus ){
if( !finishWhenEditTextFocus){
isStart = false;
showSelectTypeDialog();
finishWhenEditTextFocus = true;
}
}
}
});
在layout看看有没有取消默认值的。android不大熟悉,我做网站的!
2024-08-03 04:23:57
android:focusable="true"
android:focusableInTouchMode="true"
在父布局里面写这两个属性就OK
2024-08-03 02:20:58