做如下監(jiān)聽處理即可
//使edittext獲得焦點(diǎn)時(shí),強(qiáng)制出現(xiàn)光標(biāo)
edittext.onFocusChangeListener = View.OnFocusChangeListener { v, hasFocus ->
if(hasFocus){
edittext.setTextIsSelectable(true)
}
}