黄学彪
2020-07-13 f3e65daca7978b21b5888f49b1bf35e1a6e5d4fd
ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindCommonLayout.cs
@@ -17,9 +17,13 @@
        /// </summary>
        public Action FloorAction = null;
        /// <summary>
        /// 选中的楼层回调[
        /// 选中的楼层回调
        /// </summary>
        public Action<string, Button> ChooseFloorAction = null;
        /// <summary>
        ///  重新加载
        /// </summary>
        public Action ReLoadAction = null;
        public FrameLayout topFrameLayout = new FrameLayout { Height = Application.GetRealHeight(184), BackgroundColor = ZigbeeColor.Current.XMTopFrameLayout };
        public FrameLayout midFrameLayout = new FrameLayout { Height = Application.GetRealHeight(1925 - 184), BackgroundColor = ZigbeeColor.Current.XMMidFrameLayout };
@@ -95,7 +99,7 @@
            btnTitle.Text = titleText;
        }
        /// <summary>
        /// 门锁中部布局
        /// 中部布局
        /// </summary>
        /// <param name="frameLayout"></param>
        public void MidFrameLayout(FrameLayout frameLayout)
@@ -106,7 +110,7 @@
        }
        /// <summary>
        /// 门锁底部布局
        /// 底部布局
        /// </summary>
        /// <param name="frameLayout"></param>
        public void BottomFrameLayout(FrameLayout frameLayout)
@@ -118,6 +122,28 @@
                BackgroundColor = ZigbeeColor.Current.XMWhite,
            };
            this.midFrameLayout.AddChidren(bottomFrameLayout1);
        }
        /// <summary>
        /// 显示重新加载的界面(主要是用在界面加载错误时,再次加载)
        /// </summary>
        public void ShowReLoadView()
        {
            var frame = new FrameLayout();
            frame.BackgroundColor = UserCenterColor.Current.White;
            frame.Tag = "ReLoadView";
            this.midFrameLayout.AddChidren(frame);
            //重新加载
            var btnReLoad = new BottomClickButton();
            btnReLoad.Gravity = Gravity.Center;
            btnReLoad.TextID = R.MyInternationalizationString.uDoReload;
            frame.AddChidren(btnReLoad);
            btnReLoad.ButtonClickEvent += (sender, e) =>
            {
                ReLoadAction?.Invoke();
                ReLoadAction = null;
            };
        }
        /// <summary>
@@ -134,7 +160,6 @@
            btnFloorText = new Button
            {
                Width = Application.GetRealWidth(300 - 69 - 58),
                Text = Language.StringByID(R.MyInternationalizationString.FirstFloor),
                TextColor = Shared.Common.ZigbeeColor.Current.XMBlack,
                TextSize = 14,
                IsBold = true,