Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to click a button to flip page? #15

Closed
tranchunghieu118 opened this issue May 9, 2017 · 3 comments
Closed

How to click a button to flip page? #15

tranchunghieu118 opened this issue May 9, 2017 · 3 comments

Comments

@tranchunghieu118
Copy link

Hi There,

It's so nice to see your library. I'm trying to customized it. After research couple day, I still have some questions:

  1. How to determine which page that user move finger in (left page or right page)?
  2. How is clickToFlip() works?, I want to know that because I want to detect the action click to flip the page.
  3. Can I use the pageFlipView as a customize view in layout? It's seem wrong Point X Y when I'm trying to do that.
@tranchunghieu118
Copy link
Author

tranchunghieu118 commented May 10, 2017

After couple hours, I have my own answer for question number 2 and 3, but I have a new question.
2. ClickToFlip() works as the action like fingerDown() and fingerUp() in the same coordinates.
3. Yes we can use pageFlipView as a customize view in layout. My problem was I use the onTouchListener of all the Activity instead of the only pageFlipView.
My new question is

  1. I'm trying to customize the Double pageFlipLayout that one size page is the square instead of the rectangle. I don't know why all photo is black.

@eschao
Copy link
Owner

eschao commented May 18, 2017

@tranchunghieu118 do you have a sample app to let me take a look? Currently, the PageFlip don't support margin or padding set, I thought to support them but eventually I gave up, that because it could brings more complex for computing and drawing.
Another way, maybe you can try to put the PageFlipView in a layout, the layout is responsible for drawing the margin or padding areas, and your PageFlipView is a square in it and only need to drawing for itself. I'm not sure if it is possible but you can try

@eschao
Copy link
Owner

eschao commented May 24, 2017

Close it since no response is received

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants