harism/android_page_curl — Issue #17: Wrong Index number of images being returned
Author: ImranTanveerIT
Created: 2011-11-12 11:12:59+00:00
State: open

If we move from start till end the index number that is returned is write but for example if we are at index 3 and flip 1 page back then instead of 2 the index returned is 1.
I am reading the index in log in getBitmap(int width, int height, int index) in CurlActivity.java file.

public Bitmap getBitmap(int width, int height, int index) {
Bitmap b = Bitmap.createBitmap(width, height,
Bitmap.Config.ARGB_8888);
b.eraseColor(0xFFFFFFFF);
Canvas c = new Canvas(b);
Log.i("index",index+""); // using to print the index

Or please tell me at which place in source code I can get the correct index number.Actually I need the correct index number of images while flipping on both sides.