0
我想獲得關於如何刷新標籤主機內容視圖的幫助,當我在同一個標籤頁上點擊它時。如何刷新標籤頁內容視圖
我想獲得關於如何刷新標籤主機內容視圖的幫助,當我在同一個標籤頁上點擊它時。如何刷新標籤頁內容視圖
嘿,你可以把你想要恢復的內容放在onresume方法中。 如..
protected void onResume()
{
// TODO Auto-generated method stub
super.onResume();
ls.setFocusable(false);
}
或
protected void onResume()
{
// TODO Auto-generated method stub
super.onResume();
i1.setImageDrawable(getResources().getDrawable(R.drawable.radioinactive));
i2.setImageDrawable(getResources().getDrawable(R.drawable.radioinactive));
i3.setImageDrawable(getResources().getDrawable(R.drawable.radioinactive));
i4.setImageDrawable(getResources().getDrawable(R.drawable.radioinactive));
i5.setImageDrawable(getResources().getDrawable(R.drawable.radioinactive));
}
感謝,但我想刷新tabhost活動當我按下回來就可以了 – user2736900
http://stackoverflow.com/questions/8853927/how-to -refresh-tabhost活動 – Nil