当前位置: 移动技术网 >

onTextChaned

  (共找到 1 条与 onTextChaned 相关的信息)

使用RxJava优化EditText#onTextChanged回调

2020-08-10 14:18 | 评论:0 次 | 浏览: 0

EditText是常用的文字输入控件,但是其回调接口设计的不友好,需要实现三个接口,而大多数场景我只关心onTextChangededitText.addTextChangedListener(object : TextWatcher { override fun afterTextChanged(s: Editable?) { } override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, a

移动技术网