| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = R.MyInternationalizationString.Category, |
| | | TextSize = 20, |
| | | TextSize = 24, |
| | | TextColor = ZigbeeColor.Current.GXCTextDeepBlackColor, |
| | | IsBold=true |
| | | }; |
| | | topView.AddChidren(title); |
| | | |
| | |
| | | { |
| | | NameBtn.IsSelected = Line.IsSelected = statu; |
| | | NameBtn.TextSize = statu ? CommonFormResouce.TextSize_Selected : CommonFormResouce.TextSize; |
| | | NameBtn.IsBold = statu; |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | topTitle = new Button |
| | | { |
| | | X=Application.GetRealWidth(164), |
| | | X = Application.GetRealWidth(164), |
| | | Height = Application.GetRealHeight(CommonFormResouce.TopFrameLayout_Height - CommonFormResouce.TopStatuFrameLayout_Height), |
| | | Width = Application.GetRealWidth(CommonFormResouce.TopTitle_Width), |
| | | TextSize = CommonFormResouce.TopTitle_TextSize, |
| | | TextColor = ZigbeeColor.Current.GXCTitleBlackTitle, |
| | | TextAlignment=TextAlignment.CenterLeft |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | IsBold = true, |
| | | }; |
| | | |
| | | topView.AddChidren(topTitle); |
| | | } |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = Config.Instance.Home.Name ?? Language.StringByID(R.MyInternationalizationString.TheResidenceNameNull), |
| | | TextSize = 24, |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | IsBold=true |
| | | }; |
| | | if (Config.Instance.Home.IsOthreShare) |
| | | { |
| | |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextID = R.MyInternationalizationString.Scence, |
| | | IsSelected = true, |
| | | TextSize=16 |
| | | TextSize=16, |
| | | IsBold=true |
| | | }; |
| | | functionSceneView.AddChidren(sceneBtn); |
| | | |
| | |
| | | sceneBtn.IsSelected = false; |
| | | functionBtn.IsSelected = true; |
| | | sceneBtn.TextSize = 14; |
| | | sceneBtn.IsBold = false; |
| | | functionBtn.TextSize = 16; |
| | | functionBtn.IsBold = true; |
| | | RefreshBodyView(); |
| | | }; |
| | | //选择场景分栏 |
| | |
| | | functionBtn.IsSelected = false; |
| | | sceneBtn.IsSelected = true; |
| | | sceneBtn.TextSize = 16; |
| | | sceneBtn.IsBold = true; |
| | | functionBtn.TextSize = 14; |
| | | functionBtn.IsBold = false; |
| | | RefreshBodyView(); |
| | | }; |
| | | |