string-array From XML to ListView in Android

preview_player
Показать описание
Load string-array from XML file to ListView in Android
Рекомендации по теме
Комментарии
Автор

Subscribe to my channel, I will send you the source code demo

improveyourprogrammingskil
Автор

I come from simple languages like PASCAL. Help me with a super beginner questions, please.

How to make a string-array variable to receive the value of another string-array variable?

My crude example is:

<string-array name="CitySP">
<item> mogi </item>
<item> suzano </item>
</string-array>


<string-array name="CityRJ">
<item> rio </item>
<item> são gonçalo </item>
</string-array>

<string-array name="City">
</string-array>

String name = "State";

switch (State)
{
case "SP":
string-array "City" = string-array "CitySP"
break;


case "RJ":
string-array "City" = string-array "CiyRJ"
break;

// How to fix this, please? Thank you

MrCleiton