如何刷新标签内容视图

时间:2013-09-01 12:53:21

标签: android android-layout android-intent

当我在同一个标​​签页上点击它时,我正在尝试获取有关如何刷新标签主机内容视图的帮助。

1 个答案:

答案 0 :(得分: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));

}
相关问题