A COMPARISON OF CREATING AN ANDROID APPLICATION USER INTERFACE IN XAML AND IN C# CODE

I. Košťál, M. Misut
{"title":"A COMPARISON OF CREATING AN ANDROID APPLICATION USER INTERFACE IN XAML AND IN C# CODE","authors":"I. Košťál, M. Misut","doi":"10.12955/pns.v2.153","DOIUrl":null,"url":null,"abstract":"Almost every Android user application has some kind of user interface. Android programmers who create Xamarin.Forms applications and who uses the Microsoft Visual Studio development environment to do so can create user interfaces in the XAML (the Extensible Application Markup Language) or in the C# programming language. This paper deals with a comparison of creating this user interface by the first and the second way. We demonstrate the differences in the creation of Android application user interfaces in XAML and in C# by way of using two of our Android applications which were created by the Microsoft Visual Studio 2019 Enterprise, which work as text editors with the ability to store text to disc, and have user interfaces that are visually identical. However, the user interface of the first Android application was created in XAML with a C# support code, whereas the user interface of the second Android application was created entirely in C#. While comparing the source codes of the user interfaces of both these Android applications, we identify the advantages and disadvantages of both approaches to creating a user interface and we try to find out which of these approaches is better for maintaining and modifying user interfaces. In this study, we also contrast the processes of handling events of controls of a user interface created in the XAML code for the first Android application as well as that of the same user interface created in the C# code for the second Android application. Furthermore, we were interested in determining whether the different ways of creating user interfaces affected the execution time of basic operations that included disc files that were performed on the same data by both the applications. We assume that it does not fundamentally affect the execution time, and so, we performed an experiment to confirm or refute our assumption.","PeriodicalId":296102,"journal":{"name":"Proceedings of CBU in Natural Sciences and ICT","volume":"20 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of CBU in Natural Sciences and ICT","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.12955/pns.v2.153","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Almost every Android user application has some kind of user interface. Android programmers who create Xamarin.Forms applications and who uses the Microsoft Visual Studio development environment to do so can create user interfaces in the XAML (the Extensible Application Markup Language) or in the C# programming language. This paper deals with a comparison of creating this user interface by the first and the second way. We demonstrate the differences in the creation of Android application user interfaces in XAML and in C# by way of using two of our Android applications which were created by the Microsoft Visual Studio 2019 Enterprise, which work as text editors with the ability to store text to disc, and have user interfaces that are visually identical. However, the user interface of the first Android application was created in XAML with a C# support code, whereas the user interface of the second Android application was created entirely in C#. While comparing the source codes of the user interfaces of both these Android applications, we identify the advantages and disadvantages of both approaches to creating a user interface and we try to find out which of these approaches is better for maintaining and modifying user interfaces. In this study, we also contrast the processes of handling events of controls of a user interface created in the XAML code for the first Android application as well as that of the same user interface created in the C# code for the second Android application. Furthermore, we were interested in determining whether the different ways of creating user interfaces affected the execution time of basic operations that included disc files that were performed on the same data by both the applications. We assume that it does not fundamentally affect the execution time, and so, we performed an experiment to confirm or refute our assumption.
用xaml和c#代码创建android应用程序用户界面的比较
几乎每个Android用户应用程序都有某种用户界面。创建Xamarin的Android程序员。表单应用程序以及使用Microsoft Visual Studio开发环境的用户可以使用XAML(可扩展应用程序标记语言)或c#编程语言创建用户界面。本文对第一种方法和第二种方法创建用户界面进行了比较。我们通过使用两个由Microsoft Visual Studio 2019 Enterprise创建的Android应用程序来演示在XAML和c#中创建Android应用程序用户界面的差异,这两个Android应用程序可以作为文本编辑器,能够将文本存储到光盘上,并且具有视觉上相同的用户界面。然而,第一个Android应用程序的用户界面是用XAML创建的,带有c#支持代码,而第二个Android应用程序的用户界面完全是用c#创建的。在比较这两种Android应用程序用户界面的源代码时,我们确定了两种创建用户界面的方法的优点和缺点,并试图找出哪一种方法更适合维护和修改用户界面。在本研究中,我们还对比了在XAML代码中为第一个Android应用程序创建的用户界面控件的事件处理过程,以及在c#代码中为第二个Android应用程序创建的相同用户界面的处理过程。此外,我们感兴趣的是确定创建用户界面的不同方式是否会影响两个应用程序对相同数据执行的包括磁盘文件在内的基本操作的执行时间。我们假设它不会从根本上影响执行时间,因此,我们进行了一个实验来证实或反驳我们的假设。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书