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

后端 未结 15 1572
北恋
北恋 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 used bruce's answer with a slight adjustment.

    I needed adjustResize in my activity instead of adjustpan but when I tried it the error occurred again.
    I replaced ScrollView with and it works fine now. Hope this helps someone!

提交回复
热议问题