xamarin.android - After updating xamarin forms, stacklayouts inside relativelayouts are not laying out properly -
some of stacklayouts
wrapping content width/height rather using constraints given them when adding them relativelayout
. example of happening navigation bar. create this
var leftbuttonlayout = new stacklayout { children = { _scenemaintoolsview.menubutton, _scenetitle }, orientation = stackorientation.horizontal, backgroundcolor = color.fromhex(colours.orange), horizontaloptions = layoutoptions.startandexpand, spacing = 8 };
i add relative layout
_layout.children.add(leftbuttonlayout, constraint.relativetoparent(p => 0), constraint.relativetoparent(p => 0), constraint.relativetoparent(p => p.width), constraint.relativetoparent(p => navbarheight));
and later set contentview's content
property
content = _layout;
this has been happening since updated xamarin forms nuget package 2.3.0.49 (necessary use dll's). know why happening or how fix it? i'm testing on android 4.4.2 (kitkat) , compiling using 6.0 (marshmallow).
Comments
Post a Comment