Giter Club home page Giter Club logo

android-page-curl's Introduction

Page Curl for Android

Overview

The android-page-curl is a 2D View which simulates a page curl effect. Without OpenGL, only the android canvas has been used, so that it can be used in any version of Android!

Showcase

Page Turner

The synchronizing e-reader for Android.

Page Turner is an open-source e-book reader for Android that allows you to synchronize your reading progress across devices. This means you can read a few pages on your phone and then grab your tablet and pick up on the exact spot you left off on your phone. Grab quick reading moments anywhere, anytime.

Page Turner does not use the android-page-curl out of the box, they transformed it into an animator class! It's a great reader and of course all open-source!

Demo

Have a look at the demo video.

Current State

By now it just switches between 2 images. But the idea is to render any view to animage and using two (foregound and background) images to create the effect. In some thime the flipper will inherit from ViewGroup? instead if View so that content providers and adapters will be able to add views to it.

License

The project is licensed under the New BSD License so you can use it in commercial projects too. If you are building something with it please send us a mail and we will add you into the showcase section.

android-page-curl's People

Contributors

moritz-wundke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-page-curl's Issues

integrate with listview

am try to open listview instead of image drawable in PageCurlView

please help how integrate with listview

page's child layout is not clickable

I have three pages in which I have multiple Buttons and EditTexts and i want to perform an action on click of a button.
I tried to make my three pages clickable=true and focusable=true, but still, it is not working

Question about flipping

Hi!

I really like your work and would like to use it, but I can't figure out, how can I turn off flipping when I just touch the screen.
Is it possible somehow?

I thought I do a book like app, but it's not good that when I just touch the screen it flips.
I rather want to use it like I start pulling the view and when it is over the half or quarter of the views width, then it flips automatically.

I really appreciate any help you can provide.

Upgrade Android SDK version

I need to upgrade the version of sdk android. In the example project use version 4. I put it to compile in 25 and minimum 16. But I'm losing the effect of page curl. Is there any way to maintain this compatibility?

About TXT File

How can i add a TXT file to this ??? I want to make an E-Book ,use this great Effect !!!

targetSdkVersion

Can't set targetSdkVersion to be higher than "13" in the Android Manifest. If you do, about halfway through the curl it starts showing the background on top of the foreground.

Some changes

how i add curl effect on top as well as bottom.how i add addapter on pagecurlview and how change spped off animation fasr

Where are he styles?

well i clone the project but it dont have any of styles insade

TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.PageCurlView);

		// Get data
		bEnableDebugMode = a.getBoolean(R.styleable.PageCurlView_enableDebugMode, bEnableDebugMode);
		mCurlSpeed = a.getInt(R.styleable.PageCurlView_curlSpeed, mCurlSpeed);
		mUpdateRate = a.getInt(R.styleable.PageCurlView_updateRate, mUpdateRate);
		mInitialEdgeOffset = a.getInt(R.styleable.PageCurlView_initialEdgeOffset, mInitialEdgeOffset);
		mCurlMode = a.getInt(R.styleable.PageCurlView_curlMode, mCurlMode);

wher are those styles?

Speed of turning the page is very slow

Thanks for the awesome. I am a newbie to android and trying to play with the library. After I imported the project, the page turning effect when I swipe is faster but when swipe is stopped, the turning effect is very slow. Hope I need to change the "mUpdateRate" but it dine worked still the same. Please let me know where we have to change the parameter to achieve proper speed in turning the page.

Flip The Curl

thanks a lot but is there any way to change the flip from the right - left to the left - right and thank you

Integration animation with PageTurner

Hello, I'm thinking in integration with PageTurner...
The Animation is more softer, than the project PageTurner, you can help - me?
Where do I start?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.