Localize resources, language, appearance and screen size
نوشته شده توسط : dotnek

In this case, you must consider all the conditions and standards of the countries so that you can design an application that is compatible with the standards and cultures of all countries. The only solution is to design the application in such a way that it changes the mode according to the place and place that is used and conforms to the conditions and standards there. In this tutorial, we will explain how to design an application and localize its resources.

Application Localization and String Resources

The application you are designing may be used in many countries in addition to your own country, in which case your languages ​​may be different and the original language you may have considered for your application may be used in other countries. Do not use. For this reason, it is better to consider the language of other countries and present them in your application so that people from other countries can use it as well. Even in choosing colors and designs, you have to consider the culture of all countries to match their culture. In order to design an application whose resources and appearance are compatible with other countries and places, we must design it in such a way that according to the place where it is used, without changing the sources of the code, Adjust the appropriate settings for that location. In this way, it identifies the place where it is used and according to the desired place, loads and uses the appropriate resources and settings of that place.For example, consider a program that is used in three different places, in which case the language used to display the texts is different.

The contents of the Main.axml file can be configured as follows:

<? xml version = "1.0" encoding = "utf-8"? >
<LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
android: orientation = "vertical"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
>
<Button
android: id = "@ + id / myButton"
android: layout_width = "fill_parent"
android: layout_height = "wrap content"
android: text = "@ string / hello"
/>
</ LinearLayout>

Android Assets

Assets are a method that can be used to add different types of resources such as images, text, videos, music and XML. Assets added to your application are like files that exist inside your system and can be read using AssetManager.In this part of the tutorial, we want to create an Assets text file and add it to our project, and then read it using AssetManager and display it in a TextView.

How to add an Assets to a project?

Assets are placed in a folder called Assets in the project. Create a text file inside this folder and select its name read_asset.txt. Then write a text inside the text file you created, such as: I am an asset. Visual Studio must set Build Action for this file to AndroidAsset, if set to BuildAction it ensures that the file is packaged in the APK at compile time. 

 

Read more on:https://www.dotnek.com/Blog/Apps/localize-resources-language-appearance-and-sc

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

Related link:Search engine Optimization (SEO services)





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


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

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

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