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.

Highlights

  • An Android Xamarin.Forms application programmer who uses the Microsoft Visual Studio development environment to create it can construct its user interface in XAML or in the C# programming language

  • We were interested in determining the differences in creating the Android Xamarin.Forms application user interface in XAML and C#, as well as in finding out what advantages and disadvantages can result for developers and software companies from either one of the choices

  • The use of XAML to create the user interface of the Android application does not worsen the execution time of the examined basic operations of the Android application. It is evident from the comparison of the XAML code and the C# code for the two of our Android Xamarin.Forms application user interfaces, having the same visual appearance, that the XAML code “provides a more succinct and elegant definition of the user interface and has a visual structure that better mimics the tree organization of the visual elements on the page” (Petzold, 2016) and the XAML code is more concise than the equivalent C# code (Petzold, 2016)

Read more

Summary

Introduction

An Android Xamarin.Forms application programmer who uses the Microsoft Visual Studio development environment to create it can construct its user interface in XAML (the Extensible Application Markup Language) or in the C# programming language. Using XAML and C# Code for Creating an Android Xamarin.Forms Application User Interface

Results
Conclusion
Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call