Skip to content Skip to sidebar Skip to footer

Get Current Id Of Image Which Is Showing On View Pager

So I made view pager for my app, but I have a small problem. I can't figure out how to get ID from the image I am viewing. My ressources are in Assets Folder. Is it possible to get

Solution 1:

instead of setResource use either setBitmap or setStream

Solution 2:

Use this:

myWallpaperManager.setResource(imageArray[curruntPosition]);

instead of

myWallpaperManager.setResource(R.drawable.ic_launcher);

Post a Comment for "Get Current Id Of Image Which Is Showing On View Pager"