brucevan1987 / android-page-curl Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-page-curl
Automatically exported from code.google.com/p/android-page-curl
I seem unable to add any more images with the app just crashing on my attempt,
any help would be great
mPages = new ArrayList<Bitmap>();
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.front));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page0b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page1b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page2b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page3b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page4b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page5b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page6b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page7b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page8b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page9b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page10b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page11b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page12b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page13b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page14b1));
mPages.add(BitmapFactory.decodeResource(getResources(), R.drawable.page15b1));
// Create some sample images
mForeground = mPages.get(0);
m0 = mPages.get(1);
m1 = mPages.get(2);
m3 = mPages.get(3);
m4 = mPages.get(4);
m5 = mPages.get(5);
m6 = mPages.get(6);
m7 = mPages.get(7);
m8 = mPages.get(8);
m9 = mPages.get(9);
m10 = mPages.get(10);
m11 = mPages.get(11);
m12 = mPages.get(1);
m13 = mPages.get(13);
m14 = mPages.get(14);
m15 = mPages.get(15);
m16 = mPages.get(16);
and then added
@Deprecated
private void SwapViews() {
Bitmap temp = mForeground;
mForeground = m0;
m0 = m1;
m1 = m2;
m2 = m3;
m3 = m4;
m4 = m5;
m5 = m6;
m6 = m7;
m7 = m8;
m8 = m9;
m9 = m10;
m10 = m11;
m11 = m12;
m12 = m13;
m13 = m14;
m14 = m15;
m15 = m16;
m6 = temp;
}
Original issue reported on code.google.com by [email protected]
on 10 May 2012 at 9:10
This program shows android´s page curls between two images. We can also do
this with two layouts? Somedody knows how to do this?
Thank you
Original issue reported on code.google.com by [email protected]
on 30 Mar 2011 at 3:11
this project only used two image or more image, but how can i use this code
with big text, like FBreader,MoonReader?
can anyone help me ?
Original issue reported on code.google.com by [email protected]
on 8 Oct 2012 at 9:11
I referred this code to build a calendar using page curl view.I want to give my
app a real touch of a book.when a user turns the page, it should go to the next
month view and similarly to the previous month.Imagine there is a real calendar
and you are turning the pages to view the next or previous month.I want to
apply the same to my calendar app.Can anyone suggest me how to apply a listener
to the curl view described in the above code??
Original issue reported on code.google.com by [email protected]
on 17 Aug 2012 at 12:40
This is not an issue, but it would really be helpful if there is a way to
perform the same page curl as an animation to start activity. Pls help.
Original issue reported on code.google.com by [email protected]
on 30 Nov 2011 at 6:40
Flipping after last page and Flipping before first page
1)No back flipping option at last page to flip next page
2)No back flipping option at first page to flip back page
Page Count
1) How to show the current page/image count with respective total count (eg :-
4/10 ) 4 th image viewing out of 10 image
Original issue reported on code.google.com by [email protected]
on 26 Apr 2012 at 6:13
Great work! Very impressive animations you have created here, works like a
charm.
Couple of suggestions to improve the library:
- Like you said, implement the ability to use Views instead of Bitmaps. You can easily start adding this in by supplying the Foreground and Background Views within the constructor, and then draw then to a bitmap (via a canvas) in the Init method.
- Dont require a background Image? For example, maybe its just a small drop down you want to curl in and out, which will be overlayed on top of the current layout. You dont want to supply a background image here, instead all you want to do is curl the drop down view.
I might look into this at some point as well, see if I can get it working.
Original issue reported on code.google.com by [email protected]
on 9 Mar 2011 at 3:29
What steps will reproduce the problem?
1. svn checkout http://android-page-curl.googlecode.com/svn/trunk/
android-page-curl-read-only
2. create an android project using 'existing source' from above directory
3. PageCurlView lines 238-242 have errors because 'R.styleable.PageCurlView_*'
are missing
and
PageAdapter line 39 R.layout.list_item missing
Please provide any additional information below.
I pulled from tip on 5/6/2011
Thanks
Original issue reported on code.google.com by [email protected]
on 7 May 2011 at 3:49
What steps will reproduce the problem?
Flip the first page and while that page is performing its page curling
animation touch and HOLD triggering another series of motion events
(ACTION_DOWN and ACTION_MOVE)
The line: if(!bBlockTouchInput) in the method onTouchEvent()
should be blocking any additional motion events from happening while the page
curl is curling.
When the page curl animation is finished the variable
bBlockTouchInput is set to false, and motion events are unblocked again,
however it might allow us to unblocked when we are performing an ACTION_MOVE or
ACTION_UP event. Therefore it is possible to become out of sync with our
expected order of touch events because the ACTION_DOWN event was blocked during
the page curl animation.
To fix in my code I added a flag in the ACTION_DOWN case that gets set, and
only gets unset in the ACTION_UP case. Then I added logic to the ACTION_MOVE
and ACTION_UP cases to break if that flag isn't set. Now if the onTouchEvent
wakes up while I am performing something other than ACTION_DOWN, no code is run
until the next ACTION_DOWN.
Original issue reported on code.google.com by [email protected]
on 4 Jun 2011 at 11:42
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
I want the page curl effect on a click event of Image-button..i have already
implemented the page curl on touch event...so can anyone plz tell me how to do
it..or any help is appreciated...
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 27 Apr 2012 at 5:12
can you tell more details about the app,Can you tell me the principle,this app
is more useful
Original issue reported on code.google.com by [email protected]
on 3 Mar 2011 at 12:10
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
how to use pdf pages instead of .jpg images
Original issue reported on code.google.com by [email protected]
on 20 Jun 2012 at 7:29
Thank you for your great library.
Can you change the PageCurlView class so that it can not only flip left to
right but top to bottom?
You can do this by creating the clipping path depending on the direction to
flip.
I tried to do this by moving the points used to define the current clipping
paths (mA, mB, mC... etc) to separated classes ClippingPathHorizontal and
ClippingPathVertical, which control the movement and the clipping path
depending on the direction.
Please refer to the sample code in the attached file android-page-curl-ex.zip.
You can change the direction by calling PageCurlView#setFlipDirection().
Original issue reported on code.google.com by [email protected]
on 22 Oct 2011 at 8:27
Attachments:
Thank you for this great project
i have problem ,
at standalone_example.xml file and list_item.xml when i click Grafic Layout i
found this message
The following classes could not be instantiated:
- (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in
Eclipse
and when i run application , first screen appear but when click for any button
message box say : unfortunately , android page curl has stopped
can you help me ???
Original issue reported on code.google.com by [email protected]
on 2 Jan 2012 at 10:04
On AndroidPageCurlActivity I got the PageAdapter missing class error, and
cannot be resolved R.styleable in PageCurlView. Thx.
Original issue reported on code.google.com by [email protected]
on 19 Apr 2011 at 4:55
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.