将 Android 应用程序移植到 Xamarin? [英] Porting an Android application to Xamarin?

查看:46
本文介绍了将 Android 应用程序移植到 Xamarin?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻求洞察力.我有一个 android 应用程序,想创建一个 ios 端口.在 Xamarin 中重新创建应用程序会更容易,还是会像重新开始一样?android 和 Xamarin 有多相似?感谢您的任何见解或建议.我想知道这样做是否会更容易,或者只是在 ios 上单独进行

I am seeking insight. I have a android application, and would like to create a ios port. Would it be easier to recreate the application in Xamarin, or would it be like starting over again? how alike are android, and Xamarin? thanks for any insight or advice. I am wondering if it might be easier to do this or to just do it sperately on ios

推荐答案

首先你需要拆开你的 Android 应用,看看哪些部分是可移植的.这也为您提供了有关如何继续处理每个部分的提示.

First you need to disassemble your Android app to see which parts are portable. That also gives you hints on how to move on for each parts.

Android 用户界面UI 可以轻松重用,因为 Xamarin.Android 项目使用相同的 XML 格式.这样你就可以创建 Xamarin.Android 项目,然后用你现有的 Android UI 替换它们的 UI.

Android UI UI can be reused easily, as Xamarin.Android projects use the same XML format. So that you can create Xamarin.Android projects and then replace their UI with your existing Android UI.

第三方第三方SDK/组件可以导入Xamarin,https://developer.xamarin.com/guides/android/advanced_topics/xamarin-for-java/

Third Party Third party SDK/components can be imported to Xamarin, https://developer.xamarin.com/guides/android/advanced_topics/xamarin-for-java/

或者一些供应商已经拥有他们的 Xamarin 库/组件.

Or some vendors already have their Xamarin libraries/components.

通用 Java 代码对于想要移植的通用Java代码,可以尝试Sharpen,

General Java Code For general Java code you want to port, you can try Sharpen,

https://github.com/mono/sharpen

祝你好运.

这篇关于将 Android 应用程序移植到 Xamarin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆