Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error

后端 未结 15 1603
北恋
北恋 2020-11-27 13:46

I have a ListView with some focusable components inside (mostly EditTexts). Yeah, I know this isn\'t exactly recommended, but in general, almost everything is w

15条回答
  •  悲哀的现实
    2020-11-27 14:01

    I faced that problem, too, and the solution by validcat worked for me, but I had to call getWindow().getCurrentFocus().clearFocus().

提交回复
热议问题