You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ An Android library of 3D style page flip. It needs OpenGL 2.0!
7
7
*[Installation](#installation)
8
8
-[Gradle](#gradle)
9
9
*[Usage](#usage)
10
-
-[Introduce PageFlip Into Your Project](#simple-steps-for-introducing-pageflip-into-your-project)
11
-
-[Configure PageFilp](#configure-pageflip)
10
+
-[Introduce PageFlip Into Your Project](#i-simple-steps-for-introducing-pageflip-into-your-project)
11
+
-[Configure PageFilp](#ii-configure-pageflip)
12
12
+[Page Mode](#1-page-mode)
13
13
+[Click Screen To Flip](#2-click-screen-to-flip)
14
14
+[Area If Clicking To Flip](#3-area-of-clicking-to-flip)
@@ -50,7 +50,7 @@ dependencies {
50
50
51
51
## Usage
52
52
53
-
### Simple steps for introducing PageFlip into your project
53
+
### I. Simple steps for introducing PageFlip into your project
54
54
55
55
* Creates a surface view class extending from **GLSurfaceView**
56
56
* Implements android **Renderer** interface to draw your content on screen
@@ -69,17 +69,19 @@ dependencies {
69
69
70
70
More details, please take a look **PageFlipView** in sample application.
71
71
72
-
### Configure PageFlip
72
+
### II. Configure PageFlip
73
73
74
74
**PageFlip** library provides some configurations for customizing its behaviors. For example: shadow color and alpha, mesh pixels and page mode.
75
75
76
76
#### 1. Page Mode
77
77
78
78
There are two page modes provided by **PageFlip**:
79
-
* **Auto Page Mode**: In this mode, **PageFlip** will automatically determine use single page or double pages to present content on screen. That means single page is used for portrait mode and double pages is used for lanscape mode.
80
-
* **Single Page Mode**: No matter what screen is portait or landscape mode, **PageFlip** always use single page to show content
79
+
80
+
***Auto Page Mode**: In this mode, **PageFlip** will automatically determine use single page or double pages to present content on screen. That means single page is used for portrait mode and double pages is used for lanscape mode.
81
+
***Single Page Mode**: No matter what screen is portait or landscape mode, **PageFlip** always use single page to show content
82
+
81
83
82
-
You can use **enableAutoPage** to enable auto page mode or disable it(enable single page mode).
84
+
You can use **enableAutoPage** to enable auto page mode or disable it(enable single page mode).
83
85
84
86
Example:
85
87
```java
@@ -194,7 +196,7 @@ More details, please take a look **PageFlipView** in sample application.
194
196
195
197
#### 11. Base shadow width of fold page
196
198
197
-
Like **[Edge shadow width of fold page](edge-shadow-width-of-foldpage)**, You can set an appropriate width range for base shadow of fold page.
199
+
Like **[Edge shadow width of fold page](10-edge-shadow-width-of-fold-page)**, You can set an appropriate width range for base shadow of fold page.
0 commit comments