| | |
| | | }
|
| | |
|
| | | //功能和场景bodyView
|
| | | this.bodyFrameLayout = new FrameLayout()
|
| | | {
|
| | | Y = functionSceneView.Bottom,
|
| | | Height = Application.GetRealHeight(750),
|
| | | Gravity = Gravity.CenterHorizontal,
|
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor
|
| | | };
|
| | | this.bodyFrameLayout = new FrameLayout();
|
| | | bodyFrameLayout.Y = functionSceneView.Bottom;
|
| | | bodyFrameLayout.Height = this.listBodyContr.frameTable.Height - functionSceneView.Bottom;
|
| | | bodyFrameLayout.BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor;
|
| | | this.listBodyContr.frameTable.AddChidren(bodyFrameLayout);
|
| | |
|
| | | //选择功能分栏
|
| | |
| | | //当前房间的设备数
|
| | | if (listDevice.Count == 0)
|
| | | {
|
| | | ShowNoFunctionTip();
|
| | | //还没有功能哦
|
| | | this.ShowNotDataImage(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.NoFunction_Tip));
|
| | | return;
|
| | | }
|
| | | //设备列表容器控件
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 显示没有功能
|
| | | /// </summary>
|
| | | private void ShowNoFunctionTip()
|
| | | {
|
| | | var noFunction = new Button
|
| | | {
|
| | | Y = Application.GetRealHeight(69),
|
| | | Width = this.GetPictrueRealSize(683),
|
| | | Height = this.GetPictrueRealSize(392),
|
| | | Gravity = Gravity.CenterHorizontal,
|
| | | UnSelectedImagePath = "Item/NoFunction.png"
|
| | | };
|
| | | bodyFrameLayout.AddChidren(noFunction);
|
| | |
|
| | | var noFunctionTip = new Button()
|
| | | {
|
| | | Y = noFunction.Bottom,
|
| | | Height = Application.GetRealHeight(200),
|
| | | Text = Language.StringByID(R.MyInternationalizationString.NoFunction_Tip).Replace("{\\r\\n}", "\r\n"),
|
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor,
|
| | | TextAlignment = TextAlignment.Center,
|
| | | IsMoreLines = true
|
| | | };
|
| | | bodyFrameLayout.AddChidren(noFunctionTip);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 重置设备卡片控件坐标_______________
|
| | |
| | |
|
| | | if (listScene.Count == 0)
|
| | | {
|
| | | //显示没场景
|
| | | this.ShowNoSceneTip();
|
| | | //还没有场景哦
|
| | | this.ShowNotDataImage(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.NoScene_Tip));
|
| | | return;
|
| | | }
|
| | | //列表控件
|
| | |
| | | System.Threading.Thread.Sleep(50);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 显示没场景
|
| | | /// </summary>
|
| | | private void ShowNoSceneTip()
|
| | | {
|
| | | var picNoFunc = new PicViewControl(683, 392);
|
| | | picNoFunc.Y = Application.GetRealHeight(69);
|
| | | picNoFunc.Gravity = Gravity.CenterHorizontal;
|
| | | picNoFunc.UnSelectedImagePath = "Item/NoFunction.png";
|
| | | bodyFrameLayout.AddChidren(picNoFunc);
|
| | |
|
| | | var btnTip = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(200), false);
|
| | | btnTip.Y = picNoFunc.Bottom;
|
| | | btnTip.Text = Language.StringByID(R.MyInternationalizationString.NoScene_Tip).Replace("{\\r\\n}", "\r\n");
|
| | | btnTip.TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor;
|
| | | btnTip.TextAlignment = TextAlignment.Center;
|
| | | btnTip.IsMoreLines = true;
|
| | | bodyFrameLayout.AddChidren(btnTip);
|
| | | }
|
| | |
|
| | | /// <summary>
|