I'm new to development and I'm stuck at a point where I don't know what would be the best possible solution.
I have a list of 26 images saved in the drawable folder. Lets say a to z. When user clicks on the right side layout they should navigate forward and if the user clicks on the left side layout they should navigate backwards.
My issue is that these are images and their IDs as retrieved by android are random int values. I can't use that to compare which letter of alphabet should be displayed next.
How do I go about this problem?
You can get the name of your resource by
String resourceName = getResources().getResourceName(resId);