WJC
2020-03-12 c47c3ec2488961b3a006aaebcb03dba582f8b19b
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
@@ -59,20 +59,23 @@
        {
            var btnFinish = new BottomClickButton();
            //借用Y轴坐标(让这个区域不能点击菜单)
            var frameBack = new FrameLayout();
            frameBack.Y = btnFinish.Yaxis;
            frameBack.Height = bodyFrameLayout.Height - btnFinish.Yaxis;
            bodyFrameLayout.AddChidren(frameBack);
            //var frameBack = new FrameLayout();
            //frameBack.Y = btnFinish.Yaxis;
            //frameBack.Height = bodyFrameLayout.Height - btnFinish.Yaxis;
            //bodyFrameLayout.AddChidren(frameBack);
            var realHeight = listview.GetChildren(0).Height * listview.ChildrenCount;
            if (bodyFrameLayout.Height - btnFinish.Yaxis + realHeight > listview.Height)
            if (listview.ChildrenCount > 0)
            {
                //促使被挡住的菜单能够向上滑动
                var frameTemp = new FrameLayout();
                frameTemp.Height = frameBack.Height + Application.GetRealHeight(115);
                listview.AddChidren(frameTemp);
                var realHeight = listview.GetChildren(0).Height * listview.ChildrenCount;
                if (bodyFrameLayout.Height - btnFinish.Yaxis + realHeight > listview.Height)
                {
                    //促使被挡住的菜单能够向上滑动
                    var frameTemp = new FrameLayout();
                    //frameTemp.Height = frameBack.Height + Application.GetRealHeight(115);
                    frameTemp.Height = bodyFrameLayout.Height - btnFinish.Yaxis + Application.GetRealHeight(115);
                    listview.AddChidren(frameTemp);
                }
            }
            btnFinish = null;
        }
    }
}