|  |  |  | @ -39,6 +39,9 @@ class CommonTopBar : LinearLayout { | 
		
	
		
			
				|  |  |  |  |         val root = LayoutInflater.from(context).inflate(R.layout.layout_topbar, this) | 
		
	
		
			
				|  |  |  |  |         mBinding = LayoutTopbarBinding.bind(root) | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         mBinding?.fourG?.setImageLevel(0) | 
		
	
		
			
				|  |  |  |  |         mBinding?.wifi?.setImageLevel(0) | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         // 初始化隐藏返回栏 | 
		
	
		
			
				|  |  |  |  |         mBinding?.backArea?.visibility = GONE | 
		
	
		
			
				|  |  |  |  |         mBinding?.backArea?.setOnClickListener { | 
		
	
	
		
			
				
					|  |  |  | @ -47,10 +50,10 @@ class CommonTopBar : LinearLayout { | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         // 默认满信号 | 
		
	
		
			
				|  |  |  |  | //        // 默认满信号 | 
		
	
		
			
				|  |  |  |  |         mBinding?.battery?.setImageLevel(100) | 
		
	
		
			
				|  |  |  |  |         mBinding?.wifi?.setImageLevel(100) | 
		
	
		
			
				|  |  |  |  |         mBinding?.fourG?.setImageLevel(100) | 
		
	
		
			
				|  |  |  |  | //        mBinding?.wifi?.setImageLevel(100) | 
		
	
		
			
				|  |  |  |  | //        mBinding?.fourG?.setImageLevel(100) | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         post { | 
		
	
		
			
				|  |  |  |  |             watchBattery() | 
		
	
	
		
			
				
					|  |  |  | @ -90,7 +93,7 @@ class CommonTopBar : LinearLayout { | 
		
	
		
			
				|  |  |  |  |         override fun onLevel(level: Int) { | 
		
	
		
			
				|  |  |  |  |             LogUtils.w("wifiCallback onLevel = $level") | 
		
	
		
			
				|  |  |  |  |             mBinding?.root?.post { | 
		
	
		
			
				|  |  |  |  |                 mBinding?.wifi?.visibility = if (level > 0) VISIBLE else GONE | 
		
	
		
			
				|  |  |  |  | //                mBinding?.wifi?.visibility = if (level > 0) VISIBLE else GONE | 
		
	
		
			
				|  |  |  |  |                 val showLevel = (level + 1) * 20 | 
		
	
		
			
				|  |  |  |  |                 mBinding?.wifi?.setImageLevel(showLevel) | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
	
		
			
				
					|  |  |  | 
 |