| | |
| | | #region 布局界面 |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | //this.AddChidren(topView.TopFLayoutView()); |
| | | |
| | | |
| | | |
| | | #if __IOS__ |
| | | // 获取当前系统的版本号 |
| | | string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | // 将系统版本字符串转换为 Version 对象 |
| | | System.Version currentVersion = new System.Version(systemVersion); |
| | | // 定义 iOS 17 作为比较的版本 |
| | | System.Version version17 = new System.Version(17, 0); |
| | | // 比较当前版本是否大于 iOS 17 |
| | | if (currentVersion.CompareTo(version17) > 0) |
| | | { |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | } |
| | | else |
| | | { |
| | | if (xiMoVideoList.Count > 0) |
| | | { |
| | | this.AddChidren(topView.TopFLayoutView2()); |
| | | } |
| | | else |
| | | { |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | } |
| | | topView.topNameBtn.TextID = StringId.keshiduijiang; |
| | | } |
| | | #else |
| | | if (xiMoVideoList.Count > 0) |
| | | { |
| | | this.AddChidren(topView.TopFLayoutView2()); |
| | | } |
| | | else |
| | | { |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | } |
| | | topView.topNameBtn.TextID = StringId.keshiduijiang; |
| | | #endif |
| | | |
| | | |
| | | var pageView = new PageLayout() |
| | |
| | | /// <param name="video">可视对讲对象</param> |
| | | void View1(FrameLayout view1, List<Video> videoList) |
| | | { |
| | | |
| | | |
| | | #region 布局界面 |
| | | var bjFl = new FrameLayout |
| | | { |
| | |
| | | Width = Application.GetRealWidth(160), |
| | | Height = Application.GetRealWidth(160), |
| | | UnSelectedImagePath = "VideoIcon/keshiduijiang.png", |
| | | |
| | | }; |
| | | bjFl.AddChidren(intercomBtnIcon); |
| | | |