I have a set of resource identifiers stored in an array. To access the viewing image in the recycler view, access to it. The problem is that when I access the array, all the return values are 0.
<array name="array_category_icons">
<item>@drawable/autumn</item>
<item>@drawable/backpack</item>
</array>
int[] myIcons = getActivity().getResources().getIntArray(R.array.array_category_icons);
myIcons[i] always returns 0.
Only displayed in the hdpi folder.
source
share