ListView
问题一:嵌套问题
//重写ScrollView @Override protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { return 0; }listView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() { @Override public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) { scrollView.scrollTo(0,0); } });让listView控件失去焦点 listView.setFocusable(false); 不能获得focus
问题二:状态问题
问题三:多布局问题
问题四:适配器问题
SimpleAdapter
问题五:自定义问题
文献
Last updated
Was this helpful?