简体   繁体   中英

How to set relative layout x, y and height constraint for image as platform dependent in Xamarin forms

I am struggle to set image relative layout parameters like height, width,x and y constraint is set as per platforms. I am very new to this layout. Please suggest any idea how to get this.

x和y属性不适用于RelativeLayout,唯一支持它的是AbsoluteLayout,它已被弃用了一段时间,并且由于使用原因而被劝阻,因此无法添加到多屏幕。

找到了一个示例https://forums.xamarin.com/discussion/17742/relativelayout-in-xaml ,根据文档说明,您将其相对于其他视图进行了设置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM