Sunday, 18 August 2013

Using strings.xml items on a listview array

Using strings.xml items on a listview array

I'm coding an Android app with android studio. I'm displaying a ListView
who gets its content from a String Array. I want to use the strings.xml
items in the array of the listview, but I can't. Please help me. I'm doing
this for the first item of the array:
public final String palanca= (getResources().getString(R.string.palanca));
private String [] formls =
{palanca,"@string/uMR","@string/new1","@string/new2","@string/new3"};
Thank You!

No comments:

Post a Comment