android4.1+系統下在自定義ListView中覆蓋onAttachedToWindow()方法會導致滾動事件(OnScroll)和OnItemclick事件響應不了。
解決方法:
@Override
protectedvoidonAttachedToWindow(){
//setSelection(1);
DebugUtils.i(TAG,"onAttachedToWindow()");
super.onAttachedToWindow();//必須調用父方法
mRefreshViewText.setVisibility(View.GONE);
mRefreshView.setVisibility(View.GONE);
}