| | |
| | | actionRefresh = action; |
| | | } |
| | | |
| | | public FunctionBaseInfoSetPage() |
| | | { |
| | | bodyView = this; |
| | | |
| | | } |
| | | |
| | | public override void RemoveFromParent() |
| | | { |
| | | new System.Threading.Thread(() => |
| | |
| | | ScrollEnabled = false, |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | //可视对讲 |
| | | if(function == null) |
| | | { |
| | | |
| | | //可视对讲 |
| | | if (function.spk == SPK.LinphoneXiMo) |
| | | { |
| | | var linphoneConnectView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(55), |
| | |
| | | |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | #region name view |
| | |
| | | |
| | | } |
| | | #endregion |
| | | #if stage2 |
| | | #region 添加到桌面 |
| | | var addToDesktopView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(55), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | contentView.AddChidren(addToDesktopView); |
| | | |
| | | var btnAddToDesktopText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(160), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = StringId.AddToDesktop, |
| | | }; |
| | | addToDesktopView.AddChidren(btnAddToDesktopText); |
| | | |
| | | var btnAddToDesktopRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/RightIcon.png", |
| | | }; |
| | | addToDesktopView.AddChidren(btnAddToDesktopRight); |
| | | |
| | | #endregion |
| | | #endif |
| | | |
| | | if (function.spk == SPK.ElectricEnergy) |
| | | { |