做如下监听处理即可
//使edittext获得焦点时,强制出现光标
edittext.onFocusChangeListener = View.OnFocusChangeListener { v, hasFocus ->
if(hasFocus){
edittext.setTextIsSelectable(true)
}
}
做如下监听处理即可
//使edittext获得焦点时,强制出现光标
edittext.onFocusChangeListener = View.OnFocusChangeListener { v, hasFocus ->
if(hasFocus){
edittext.setTextIsSelectable(true)
}
}