Android 当触摸另一个视图时,片段中的ListView项变为空白
我有一个有点复杂的布局,涉及多个片段,在GLView之上的片段中有一个ListView。当我在屏幕上除列表视图以外的任何位置结束touchMotionEvent.ACTION\u时,列表视图行中的文本视图变为空白,调用adapter.notifyDataSetChanged将刷新它们,但在下一次触摸时再次消失Android 当触摸另一个视图时,片段中的ListView项变为空白,android,android-listview,android-fragments,nutiteq,Android,Android Listview,Android Fragments,Nutiteq,我有一个有点复杂的布局,涉及多个片段,在GLView之上的片段中有一个ListView。当我在屏幕上除列表视图以外的任何位置结束touchMotionEvent.ACTION\u时,列表视图行中的文本视图变为空白,调用adapter.notifyDataSetChanged将刷新它们,但在下一次触摸时再次消失 The relevant bits of the layout: SlidingFragmentActivity A SherlockFragment that fills the
The relevant bits of the layout:
SlidingFragmentActivity
A SherlockFragment that fills the whole screen
RelativeLayout
A SherlockFragment containing LinearLayout, layout_width=WrapContent, layout_height=wrap_content, orientation=vertical
ImageButton, layout_width=WrapContent, layout_height=wrap_content
ListView(The problem view), layout_width=200, layout_height=wrap_content, background=transparent
Each row is a RelativeLayout containing several TextViews, with a semi-transparent background
TextView
ImageView
View that Overrides onDraw(Canvas) to do custom drawing
GLView - a Nutiteq MapView
每当MotionEvent.ACTION\u出现时调用adapter.notifyDatasetChanged都会使问题变得不那么明显,但这似乎是一个浪费cpu时间的不雅观的解决方案
右下角列表视图中的两个屏幕截图说明了问题