In android arrays.xml, I can define arrays like below,
<string-array name="feed_icons">
<item value="0">@drawable/latest</item>
<item value="1">@drawable/video</item>
<item value="2">@drawable/world</item>
<item value="3">@drawable/sports</item>
<item value="4">@drawable/arts</item>
<item value="5">@drawable/dining</item>
</string-array>
I wonder how to get the drawable according the value? Is three any function? I just kown that,
String[] iconArrays = getResource().getStringArrays(R.arrays.feed_icons);
but it's not my desired.