i want align 1 image top , 1 image bottom of relativelayout in xamarin.forms. how can this?
<relativelayout> <image aspect="fill" source = "header_login.png"></image> <image aspect="fill" source = "login_footer_2.png" relativelayout.xconstraint= "{constraintexpression type=relativetoparent, property=width, factor=0}" relativelayout.yconstraint= "{constraintexpression type=relativetoparent, property=height, factor=1}" ></image> </relativelayout>
i found may useful you. if not done using relativelayout, can still have want using stacklayout.
the idea :
<stacklayout> <stacklayout verticaloptions="start"> <image/> <!--top image--> </stacklayout> <stacklayout verticaloptions="centerandexpand"> <!-- middle controls --> </stacklayout> <stacklayout orientation="horizontal" verticaloptions="end"> <image/> <!--bottom image--> </stacklayout> </stacklayout> by expanding middle stacklayout take al remained spaces pushing other 1 on top , on bottom respectively. useful me have fixed bottom. https://stackoverflow.com/a/30143144/3324840
Comments
Post a Comment