java.lang.IllegalArgumentException: parameter must be a descendant of this view Error

前端 未结 4 1314
暖寄归人
暖寄归人 2021-01-21 04:21

I have a strange Error with a ViewGroup. For my main View I use classes in this links ViewFlow project

    java.lang.IllegalArgumentException: parameter must be          


        
4条回答
  •  温柔的废话
    2021-01-21 04:56

    I had the same issue when deleting item from recycler view which contains EditText. Just before notifying adapter that item was deleted I used

    (requireContext() as Activity).currentFocus?.clearFocus()
    

提交回复
热议问题