AXML和XAML之间的区别? [英] Difference between AXML and XAML?

查看:413
本文介绍了AXML和XAML之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Studio Xamarin跨平台移动开发的新手,我一直在寻找有关AXML的信息,但我找不到用于设计和应用MVC方法的任何教程。

I'm new to Visual Studio Xamarin Cross-platform mobile development and I keep on searching about AXML I just can't find any tutorial for designing and applying an MVC approach.

实际上,我对此有很多疑问。但是我先将这3个留在这里。

I have a lot of questions regarding this actually. But i'll just leave this 3 here first.


  1. 它们有什么区别?

  2. 可以xaml设计是否可以在axml中应用?

  3. 如何将css应用于axml文件?


推荐答案

1-它们有什么区别?

AXML:仅针对描述UI Android应用。这些文件与Android本机应用程序使用的文件相同。

AXML: Describe the UI for only Android apps. These are the same files used by Android native applications.

XAML:指定Xamarin.Forms布局;这些文件描述了跨平台布局,每个平台然后在其本机控件中呈现

XAML: Specifies Xamarin.Forms layouts; these files describe a cross platform layout that each platform then renders in their native controls

2-可以在XML中应用xaml设计吗?

Xaml设计不能直接复制到AXML(因为它们指定了不同的控件),但是可以移植到AXML。从概念上讲,xaml文件描述了两种平台上的UI外观。

Xaml designs cannot be directly copied into AXML (as they specify different controls) but they can be ported to AXML. Conceptually, xaml files describe how a UI should look on both platforms.

3-如何将CSS应用于axml文件?

级联样式表(CSS)不适用于Xaml,因为它们描述了如何设置HTML样式。要设置Xaml的样式,请查看Xamarin使用的样式API 表格

Cascading style sheets (CSS) are not applicable to Xaml as they describe how to style HTML. To style Xaml, look at the styles API used by Xamarin.Forms

这篇关于AXML和XAML之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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