Answers for "spinner states and cities array list"

0

spinner states and cities array list

<string-array name="State_array">
            <item >s1</item>
            <item >s2</item>
            <item >s3</item>
            <item >s4</item>
    </string-array>
//then cities array for each states, like 
<string-array name="State1Cities_array">
            <item >c11</item>
            <item >c12</item>
            <item >c15</item>
            <item >c13</item>
    </string-array>
<string-array name="State2Cities_array">
            <item >c1</item>
            <item >c2</item>
            <item >c5</item>
            <item >c3</item>
    </string-array>

// and so on for all the states
Posted by: Guest on August-26-2021

Browse Popular Code Answers by Language