android PullToRefreshListView 4.0上不能上拉刷新

由於需要使用了PullToRefreshListView,在4.0及其以下的版本上使用都是好的,但是在4.1的系統上使用,發現不能滑動不能點擊,經過查找發現需要在PullToRefreshListView.java中添加

@Override
		protected void onAttachedToWindow() {
			// TODO Auto-generated method stub
			super.onAttachedToWindow();
			setSelection(1);
		}

這樣即可
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章