Application resources available in Xamarin. Android
نوشته شده توسط : dotnek

after sending the user request to launch the application , it refers to the resources available on the operating system so that they can launch and launch the application. Applications have user interface layouts that exist in XML files.Applications available on the Android OS have resources that we will teach you in this tutorial.

Basics of application resources in Xamarin.Android

When an application is created for the Android operating system, the resources related to that application are set by the default Xamarin.Android template.

The files that create the default resources are as follows:

icon:

This file has the default Icon.png for the application icon created.

Main.axml:

This file has the default user interface layout for the created application .

Note:

Android supports the xml format while Xamarin.Android uses the axml format.

Strings.xml:

Creates a string table that is used to help localize Word applications.

AboutResources.txt:

This file is not necessary and you can even delete this file because it does nothing special, it just provides an overview of the level of Resources files.

Resource.designer.cs:

This file, unlike the AboutResources.txt file, is very important and is produced by Xamarin.Android . This file has a unique ID's for each source. In fact, this file was created automatically by Xamarin.Android and will be restored from time to time if needed.

How to create resources and access them?

Creating application resources is a very simple and easy task. Add Strings.xml to the file and project. Once added, Build Action is automatically set to AndroidResource. AndroidResource setting is done by Xamarin.Android tool. Doing so will allow you to properly compile the Xamarin.Android tool and embed the resources into the APK file.

Note:

If Build Action is not set up properly on Android Resource, all existing file in the APK will be removed and no attempt to set or upload files will be effective. In this case, you will encounter a runtime error and eventually the application will crash.Unlike Android, Xamarin.Android is not strict and supports all lowercase and uppercase characters. And you can easily use uppercase or lowercase letters when naming them because Xamarin.Android does not give any error for using uppercase and lowercase letters. 

Read more on:https://www.dotnek.com/Blog/Apps/application-resources-available-in-xamarin-an

link:https://dotnek.mystrikingly.com/

Related link:DotNek Android Development





:: برچسب‌ها: dotnek , seo , site ,
:: بازدید از این مطلب : 57
|
امتیاز مطلب : 0
|
تعداد امتیازدهندگان : 0
|
مجموع امتیاز : 0
تاریخ انتشار : دو شنبه 4 مرداد 1400 | نظرات ()
مطالب مرتبط با این پست
لیست
می توانید دیدگاه خود را بنویسید


نام
آدرس ایمیل
وب سایت/بلاگ
:) :( ;) :D
;)) :X :? :P
:* =(( :O };-
:B /:) =DD :S
-) :-(( :-| :-))
نظر خصوصی

 کد را وارد نمایید:

آپلود عکس دلخواه: