我知道recycling of views in LiveView
,我也知道我们不能have a listview as a child of scroll view
,这只会扰乱向上滚动。
我知道该work around of using LinearLayout
视图组或任何其他视图组并向其添加组件。这是非常可行的,但我喜欢我的应用程序调整,以及我want to recycle views
在实施解决方法时。
如果我膨胀一次并尝试添加该视图,则会发生异常并询问我first call removeView()
的父母。
任何人都可以告诉我其他解决方法(如果有的话),或者在这种情况下如何实现回收?