/**
*更新界面数据显示
**/
protected void updateUI() {
myPowerCheckBox.setChecked(Lamp_Power);
myAutoCheckBox.setChecked(Lamp_Auto_Control);
tv_data_Lamp_Size.setText(Lamp_Size +"");
sb_data_Lamp_Size.setProgress((int)((Lamp_Size - LAMP_SIZE_ADDITION) / LAMP_SIZE_RATIO - LAMP_SIZE_OFFSET));
tv_data_Today_Humidity.setText("湿度:" + Today_Humidity +"");
tv_data_Today_Temp.setText(Today_Temp +"°C");
tv_data_lamp_illumination.setText("光强度:" + Light_Intensity);
tv_data_have_CombustibleGas.setText((Have_CombustibleGas) ? "有可燃气体" : "无可燃气体");
tv_data_sitting_posture.setText((Sitting_Posture) ? "坐姿正确" : "坐姿不正确");
HashMap<String, String>HMSataHashMap = DateTimeUtils.getIntTimeToHMS(Now_Time);
tv_data_time.setText(HMSataHashMap.get("h") + ":" +HMSataHashMap.get("m"));
initViewPager();
HashMap<String, Double>stringDataHashMap = new HashMap<>();
stringDataHashMap.put("Today_Study", Today_Study);
stringDataHashMap.put("Last1day_Study",Last1day_Study);
stringDataHashMap.put("Last2day_Study", Last2day_Study);
stringDataHashMap.put("Last3day_Study", Last3day_Study);
stringDataHashMap.put("Last4day_Study", Last4day_Study);
stringDataHashMap.put("Last5day_Study",Last5day_Study);
stringDataHashMap.put("Last6day_Study", Last6day_Study);
//设置温度折线图
studyTimeContentPager.setData(stringDataHashMap, Today_Date);
/**
* 如果灯关了,强制顶部图片最暗
*/
if (Lamp_Power)setTopLampLight(Lamp_Size);
else setTopLampLight(-255);
}