コード例 #1
0
        public void FlexLayoutGetFlexShrink()
        {
            tlog.Debug(tag, $"FlexLayoutGetFlexShrink START");

            View view = new View()
            {
                Size            = new Size(400, 400),
                BackgroundColor = Color.White,
                Layout          = new FlexLayout()
                {
                    Direction = FlexLayout.FlexDirection.Column,
                }
            };

            FlexLayout.SetFlexShrink(view, 0.9f);
            var result = FlexLayout.GetFlexShrink(view);

            Assert.AreEqual(0.9f, result, "should be equal!");

            view.Dispose();
            tlog.Debug(tag, $"FlexLayoutGetFlexShrink END (OK)");
        }