在Activity的生命周期中onResume 方法的作用:

可以去更新界面显示的状态,也就是说我这个页面现在处于运行状态,那么怎么去更新界面呢

protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		//每次调用都更新topbar界面

		if(Constant.download_count==0){
			
			show_red_dot.setVisibility(titileView.GONE);	
		}else if(Constant.download_count > 0){
			show_red_dot.setVisibility(titileView.VISIBLE);
		}
		
		
	}

 

相关文章:

  • 2021-06-07
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-08-16
  • 2021-09-14
猜你喜欢
  • 2021-05-11
  • 2021-05-16
  • 2022-01-17
  • 2021-08-22
相关资源
相似解决方案