| | |
| | | /// </summary> |
| | | Button btnBack; |
| | | |
| | | public Button btnTilte; |
| | | /// <summary> |
| | | /// 标题名称 |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | /// <param name="frame"></param> |
| | | /// <param name="tilte"></param> |
| | | public void LoadTopView(uint color = CSS_Color.TopViewColor) |
| | | public void LoadTopView(uint color = CSS_Color.TopViewColor)//,Action<List<Function> action |
| | | { |
| | | contentView = new FrameLayout() |
| | | { |
| | |
| | | }; |
| | | contentView.AddChidren(btnBackIcon); |
| | | |
| | | Button btnTilte = new Button() |
| | | btnTilte = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(30), |
| | |
| | | Text = title |
| | | }; |
| | | contentView.AddChidren(btnTilte); |
| | | |
| | | |
| | | |
| | | btnBack = new Button() |
| | |
| | | |
| | | var btnSetting = new Button() |
| | | { |
| | | X = Application.GetRealWidth(337), |
| | | Y = Application.GetRealHeight(29), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "FunctionIcon/Light/LightScene/SetLightSceneIcon.png", |
| | | X = Application.GetRealWidth(337-37), |
| | | Y = Application.GetRealHeight(20), |
| | | Width = Application.GetMinRealAverage(28+37), |
| | | Height = Application.GetMinRealAverage(28+19), |
| | | TextID = StringId.CombinedDimming, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = CSS_Color.MainColor, |
| | | IsMoreLines = true |
| | | //UnSelectedImagePath = "FunctionIcon/Light/LightScene/SetLightSceneIcon.png", |
| | | }; |
| | | |
| | | contentView.AddChidren(btnSetting); |
| | |
| | | }; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 房间标题区域 |
| | | /// </summary> |
| | |
| | | /// <param name="room"></param> |
| | | /// <param name="skipAction"></param> |
| | | /// <param name="text"></param> |
| | | public void LoadTopView_SettingText(Action skipAction,string text) |
| | | public void LoadTopView_SettingText(Action skipAction,string text,bool isDelColor = false) |
| | | { |
| | | LoadTopView(); |
| | | |
| | | var btnSetting = new Button() |
| | | { |
| | | X = Application.GetRealWidth(337-100), |
| | | X = Application.GetRealWidth(355-100), |
| | | Y = Application.GetRealHeight(29), |
| | | Width = Application.GetMinRealAverage(100), |
| | | Height = Application.GetMinRealAverage(28), |
| | | TextColor = CSS_Color.MainColor, |
| | | TextColor = isDelColor ?CSS_Color.WarningColor: CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | Text = text, |