1、 <LinearLayout android:focusable="true"
android:focusableInTouchMode="true" android:layout_width="0px"
android:layout_height="0px" />
2、刷新
问题已解决,解决的方法是使用OnTabChangeListener,实现的代码如下:
@Override
public void onTabChanged(String tabId) {
System.out.println();
if(tabId != null && tabId.equals("history")){
Intent intent = this.getIntent();
int type = intent.getIntExtra("type", 0);
if(type == 0){//历史列表
HistoryActivity h = (HistoryActivity)this.getCurrentActivity();
h.initList();
}
}
}