wxr
2024-09-30 dc9a1b15bb69227e19afc070adf58156a362d2a2
HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs
@@ -24,8 +24,45 @@
            #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()
@@ -127,8 +164,6 @@
        /// <param name="video">可视对讲对象</param>
        void View1(FrameLayout view1, List<Video> videoList)
        {
            #region 布局界面
            var bjFl = new FrameLayout
            {
@@ -191,7 +226,6 @@
                Width = Application.GetRealWidth(160),
                Height = Application.GetRealWidth(160),
                UnSelectedImagePath = "VideoIcon/keshiduijiang.png",
            };
            bjFl.AddChidren(intercomBtnIcon);