2013-09-01 42 views

回答

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)); 

} 
+0

感謝,但我想刷新tabhost活動當我按下回來就可以了 – user2736900

+0

http://stackoverflow.com/questions/8853927/how-to -refresh-tabhost活動 – Nil