예제 #1
0
        public void FlexLayoutSetFlexPositionType()
        {
            tlog.Debug(tag, $"FlexLayoutSetFlexPositionType START");

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

            try
            {
                FlexLayout.SetFlexPositionType(view, FlexLayout.PositionType.Relative);
            }
            catch (Exception e)
            {
                tlog.Error(tag, "Caught Exception" + e.ToString());
                LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
                Assert.Fail("Caught Exception" + e.ToString());
            }

            view.Dispose();
            tlog.Debug(tag, $"FlexLayoutSetFlexPositionType END (OK)");
        }
예제 #2
0
        public void FlexLayoutGetFlexPositionType()
        {
            tlog.Debug(tag, $"FlexLayoutGetFlexPositionType START");

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

            FlexLayout.SetFlexPositionType(view, FlexLayout.PositionType.Relative);
            var result = FlexLayout.GetFlexPositionType(view);

            Assert.AreEqual(FlexLayout.PositionType.Relative, result, "should be equal!");

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