$
<string name="app_name">demoMark</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
<string name="spinner_header">Group Mate</string>
<string-array name="demo_name">
<item>Product Amount</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
$
ArrayAdapter<CharSequence> adapteradapter = ArrayAdapter.createFromResource(this,
R.array.demo_name, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
itemAmount.setAdapter(adapter);
Is there anyway that i can implement a loop in the string array in the String.XML
?
it will be so helpful if anyone help me out with this.