wxr
2022-05-05 5985ef28a5722360fa00f88f23544ed585fd05ef
HDL_ON/UI/UI2/FuntionControlView/ArmSensor/ArmSensorHistroyPaging.cs
@@ -32,7 +32,7 @@
            VerticalScrolViewLayout histroyView = new VerticalScrolViewLayout()
            {
                Y = btnTitle.Bottom,
                Height = Application.GetRealHeight(450),
                Height = Application.GetRealHeight(0),
            };
            FrameWhiteCentet2.AddChidren(histroyView);
@@ -53,6 +53,14 @@
                    Application.RunOnMainThread(() =>
                    {
                        var startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); // 当地时区
                        if (revData.list.Count > 9)
                        {
                            histroyView.Height = Application.GetRealHeight(450);
                        }
                        else
                        {
                            histroyView.Height = Application.GetRealHeight(50*revData.list.Count);
                        }
                        foreach (var data in revData.list)
                        {
                            var yearString = startTime.AddMilliseconds(Convert.ToDouble(data.createTime)).ToString("yyyy") + Language.StringByID(StringId.Years);