I am working on a project with a spinner and ArrayList and I want to use left to right language (Persian)
this is my code:
spinner1 = (Spinner) findViewById(R.id.spinnerVolume1);
List<String> list1 = new ArrayList<String>();
list1.add("*****");
I want to use Persian words as ***** but eclipse doesnt let me. I tried using String in res/values like this: res/values/strings.xml ==>> سلام and tried this one:
list1.add(R.String.hello);
but in code, Eclipse tells me to turn hello to String.
Also tried this code:
spinner1 = (Spinner) findViewById(R.id.spinnerVolume1);
List<Integer> list1 = new ArrayList<Integer>();
list1.add(R.String.hello);
but when I ran the app, I saw number (2131099648) instead of سلام