Is this is OK to use the ListView for inline editing?

前端 未结 3 1605
忘掉有多难
忘掉有多难 2020-12-22 02:49

EDIT:

I can\'t write into the EditText, it disappears when i try to write something, its because the getView() is called when i mod

3条回答
  •  悲哀的现实
    2020-12-22 03:50

    @yaqub use EditorActionListener with imeOptions="actionDone" like

    1. set the android:imeOptions="actionDone" property for edittext which is there in list.
    2. use editText.setOnEditorActionListener(onEditorActionListener)
    3. track if(actionId == EditorInfo.IME_ACTION_DONE) {//here do your action}

提交回复
热议问题