eschao / android-PageFlip

3D Style Page Flip on Android
Apache License 2.0
1.74k stars 262 forks source link

RTL Support #11

Closed erfannf closed 7 years ago

erfannf commented 7 years ago

I need to provide RTL support for LEFT to RIGHT page flipping. Would you please help?

eschao commented 7 years ago

@erfannf Sorry, What's the RTL?

erfannf commented 7 years ago

Right to Left languages such as Persian, Arabic or Hebrew. Printed materials in these languages are opposite of English equivalents.

eschao commented 7 years ago

I don't understand what the problem is. Page flip accepts bitmap resources and draw them on screen whenever the page is stationary or flipping, but RTL is just a language feature, I think you should draw text as RTL order on a bitmap and then set it to page flip as texture resource, the PageFlip will help you finish the leftover jobs, for example: drawing on screen when page is flipping.

odeyatwi commented 7 years ago

@eschao The RTL problem is real. In this languages, when a user scroll from left to right, the flip suppose to be forward and show the next page, and when the user scroll from right to left,the flip is backward. and of curse,the animation should match the user gestures (when he scroll from left to right,the animation should be of flipping forward,only from left to right) I would like to know if there is a way to support this functionality.

this is how the app look like: forwardflip backwardflip

this is how I need it to look (of course,the text on the picture will be RTL as well,this is not the problem) forwardfliprtl bacwardfliprtl

BuddahLD commented 6 years ago

Hello! Any possible solutions are been found? Thank you!