简体   繁体   English

Xamarin Forms ContentPage内的Android Activity或iOS ViewController

[英]Android Activity or iOS ViewController inside of Xamarin Forms ContentPage

I have a Xamarin Forms ContentPage with StackLayout. 我有一个带有StackLayout的Xamarin Forms ContentPage。 I also have a Native Android Activity, and a Native iOS ViewController. 我也有一个本地Android活动和一个本地iOS ViewController。 I want to display the Android Activity or iOS ViewController inside of my StackLayout (below my other content) depending on the OS. 我想根据操作系统在我的StackLayout中(在其他内容下方)显示Android Activity或iOS ViewController。 Is this possible, if yes how can i do it? 这可能吗,如果可以,我该怎么办?

At this time Xamarin.Forms only allows you to insert Native Views (UIView, and Android.Widget.View) , take a look at those examples of add native controls to Xamarin Forms: 目前,Xamarin.Forms仅允许您插入本机视图(UIView, and Android.Widget.View) ,看看向Xamarin Forms添加本机控件的那些示例:

iOS Android iOS Android

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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