I have a small question.
My string.xml
<resources>
<!-- Months -->
<string name="january">January</string>
<string name="february">February</string>
<string name="march">March</string>
<string name="april">April</string>
<string name="may">May</string>
<string name="june">June</string>
<string name="july">July</string>
<string name="august">August</string>
<string name="september">September</string>
<string name="october">October</string>
<string name="november">November</string>
<string name="december">December</string>
</resources>
And my months.xml
<resources>
<string-array name="months">
<item>@string/january</item>
<item>@string/february</item>
<item>@string/march</item>
<item>@string/april</item>
<item>@string/may</item>
<item>@string/june</item>
<item>@string/july</item>
<item>@string/august</item>
<item>@string/september</item>
<item>@string/october</item>
<item>@string/november</item>
<item>@string/december</item>
</string-array>
</resources>
I set the months.xml for my spinner.
<Spinner
android:id="@+id/sn_months"
android:layout_width="150dp"
android:layout_height="50dp"
android:textAlignment="center"
android:entries="@array/months"/>
Now, i want to get the string's names of the items like january, february,...NOT January, February,... in the spinner's onItemSelected using the item's position. How can i do that?
januaryfrom@string/january. Not possible. Sorry.