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

Glitches Over Horizontal Scrolling #307

Open
wants to merge 183 commits into
base: feature/horizontal_scroll
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
20d5ec2
first approach
Apr 20, 2018
d39abf3
proof of work,bug fixing,first design attempt
Apr 20, 2018
9efbecd
design,next search position,
Apr 21, 2018
04fd6a0
design icons , attempt to solve empty uniqueID
Apr 21, 2018
164cb60
document ready added,make variables more general
Apr 21, 2018
0912122
search added(+js),some refactorings
Apr 22, 2018
e479214
clear search highlights added,bug fixing
Apr 22, 2018
e738f18
Merge pull request #206 from codetoart/master
May 16, 2018
2c331f5
typo fixed
salihaksit7 May 21, 2018
abf79f9
search for old versions
salihaksit7 May 21, 2018
d9cd2a8
Save last ReadPosition on Config changes
hrishikesh-kadam Jun 18, 2018
c3c5649
Eliminate unnecessary EventBus call
hrishikesh-kadam Jun 18, 2018
b669713
Add LoadingView
hrishikesh-kadam Jun 19, 2018
d13ed41
Refactor Config view
hrishikesh-kadam Jun 19, 2018
deeefd2
Add override config option
hrishikesh-kadam Jun 20, 2018
3aaa91d
Pass root to fragment
hrishikesh-kadam Jun 20, 2018
915230d
Remember savedConfig on screen rotation
hrishikesh-kadam Jun 20, 2018
b5ee2c4
Minor bug fixes
hrishikesh-kadam Jun 20, 2018
88602e0
Change NaviagtionBar color according to theme
hrishikesh-kadam Jun 20, 2018
1745c0a
Add scrollToLast() and scrollToFirst()
hrishikesh-kadam Jun 21, 2018
557198c
Prepare v0.3.10
hrishikesh-kadam Jun 22, 2018
54f57fc
Merge pull request #220 from codetoart/master
Jun 22, 2018
3341ed6
Merge remote-tracking branch 'folioreader-origin/master' into feature…
hrishikesh-kadam Jun 22, 2018
51866bf
Fix Horizontal pagination error for single page
hrishikesh-kadam Jun 22, 2018
0546d98
Prepare v0.3.11
hrishikesh-kadam Jun 25, 2018
2c1b55c
Merge pull request #104 from codetoart/dev
Jun 25, 2018
edc562f
Merge pull request #225 from codetoart/master
Jun 25, 2018
c374f15
Merge remote-tracking branch 'folioreader-origin/master' into feature…
hrishikesh-kadam Jun 25, 2018
ad8b04a
Merge branch 'master' of https://github.com/FolioReader/FolioReader-A…
salihaksit7 Jun 25, 2018
13933a2
Merge branch 'master' of https://github.com/FolioReader/FolioReader-A…
salihaksit7 Jun 25, 2018
b2c8eb0
Merge branch 'master' of https://github.com/FolioReader/FolioReader-A…
salihaksit7 Jun 25, 2018
b037280
fixing some style issues
salihaksit7 Jun 25, 2018
ecde25b
Fix Quirks mode and <p> margins
hrishikesh-kadam Jun 26, 2018
64ebf41
Workaround for slow rendering of webpages
hrishikesh-kadam Jun 27, 2018
15f437e
Revert <p> margin changes
hrishikesh-kadam Jun 27, 2018
fabf6f7
Make LoadingView focusable and clickable
hrishikesh-kadam Jun 27, 2018
d513c51
Remove transition effect and optimise workaround for slow rendering
hrishikesh-kadam Jun 27, 2018
83a1504
Nullify highlightId and anchorId
hrishikesh-kadam Jun 27, 2018
074b951
Eliminate EventBus for anchorId
hrishikesh-kadam Jun 27, 2018
71f639e
scrollToFirst the chapter selected from TOC
hrishikesh-kadam Jun 27, 2018
ee5aadb
Fix bug in anchor scrolling
hrishikesh-kadam Jun 28, 2018
e132939
Add duration limit for LoadingView
hrishikesh-kadam Jun 28, 2018
fa7f133
Make margin override for html and body
hrishikesh-kadam Jun 28, 2018
90574ca
Remove setTitle for TOC link clicked
hrishikesh-kadam Jun 28, 2018
c0c435d
Edit log level
hrishikesh-kadam Jun 28, 2018
3f344e6
Default allowedDirection to ONLY_VERTICAL and direction to VERTICAL
hrishikesh-kadam Jun 29, 2018
1545995
Prepare v0.4.0
hrishikesh-kadam Jun 29, 2018
28d5173
Merge pull request #105 from codetoart/feature/horizontal_scroll
hrishikesh-kadam Jun 29, 2018
267109d
Merge pull request #228 from codetoart/master
Jun 29, 2018
edeb5e8
Fix Travis build fail issue
hrishikesh-kadam Jun 30, 2018
f9aa164
Merge pull request #232 from codetoart/master
Jul 2, 2018
8fc350e
Avoid eating ACTION_UP for SDK >= 26 in TextSelectionSupport
hrishikesh-kadam Jul 5, 2018
b93eb67
Store colorInt instead of colorResId in Config
hrishikesh-kadam Jul 6, 2018
dd213f7
Rename AppContext Content Provider
hrishikesh-kadam Jul 9, 2018
227e299
Fix FolioReader/FolioReader-Android#235
hrishikesh-kadam Jul 9, 2018
3876e38
Apply themeColor to Dictionary-Wikipedia dialog
hrishikesh-kadam Jul 11, 2018
41d5833
Fix bug in opening anchor links
hrishikesh-kadam Jul 12, 2018
5a9fafe
Revert HomeActivity
hrishikesh-kadam Jul 12, 2018
9c42630
Resolve merge conflicts for FolioReader/FolioReader-Android#207
hrishikesh-kadam Jul 13, 2018
a1fadf1
Temporary remove existing search code
hrishikesh-kadam Jul 16, 2018
1f690ae
Fix for screen get turned off while reading
Nikhil-z Jul 17, 2018
52e8050
Merge branch 'master' into master
Nikhil-z Jul 17, 2018
69c8298
Merge pull request #241 from Nikhil-z/master
Jul 17, 2018
65ee9b0
Distraction free reading mode for API >= 16
hrishikesh-kadam Jul 19, 2018
d9c9547
Merge branch 'feature/search' into dev
hrishikesh-kadam Jul 20, 2018
1bf9cdc
Distraction free reading mode for API 15
hrishikesh-kadam Jul 22, 2018
373d647
Fix thumb centering of seekbar in config layout
hrishikesh-kadam Jul 23, 2018
d1d28fc
Fix IndexOutOfBoundsException
hrishikesh-kadam Jul 23, 2018
bb0dc74
Native Toolbar with icons as Menu Items
hrishikesh-kadam Jul 25, 2018
8af63c1
Add SearchView as menu item
hrishikesh-kadam Jul 26, 2018
eabf6c8
Add SearchActivity
hrishikesh-kadam Jul 27, 2018
6ffd7f9
Get SearchQueryResults
hrishikesh-kadam Jul 27, 2018
f03b740
Model SearchQueryResults to ArrayList<SearchItems>
hrishikesh-kadam Aug 8, 2018
0ad923a
Add click event for Search List
hrishikesh-kadam Aug 12, 2018
95585f0
Search class applier code with pure JS and rangy
hrishikesh-kadam Aug 13, 2018
927830f
Highlight search query in webview
hrishikesh-kadam Aug 14, 2018
f3e9a9e
Avoid inconsistency in scrollLeft of WebView
hrishikesh-kadam Aug 16, 2018
0c440a4
Screen rotation support for SearchItem
hrishikesh-kadam Aug 16, 2018
7edbe7d
Update takeOverScrolling logic in WebViewPager
hrishikesh-kadam Aug 16, 2018
841e85e
Avoid unnecessary invalidation of WebView
hrishikesh-kadam Aug 17, 2018
f7e95d6
Make SearchActivity launchMode singleTop
hrishikesh-kadam Aug 19, 2018
bcd3fbc
Merge remote-tracking branch 'folioreader-origin/master' into feature…
hrishikesh-kadam Aug 19, 2018
5ca8c25
Prepare v0.4.1
hrishikesh-kadam Aug 20, 2018
2dbc803
Change Log Levels
hrishikesh-kadam Aug 20, 2018
01415fe
Merge pull request #106 from codetoart/feature/search
Aug 20, 2018
a81b7a6
Merge pull request #256 from codetoart/master
Aug 20, 2018
b0fa359
Fix bug in remembering scroll position of SearchActivity
hrishikesh-kadam Aug 21, 2018
1571d96
Add Issue Template
hrishikesh-kadam Aug 21, 2018
ba4af5c
Merge pull request #107 from codetoart/dev
Aug 21, 2018
40f18ec
Merge pull request #257 from codetoart/master
Aug 21, 2018
4d85a7a
Prefill Issue body with ISSUE_TEMPLATE.md
hrishikesh-kadam Aug 28, 2018
c6c8fb3
Place maven url in necessary module, update README
hrishikesh-kadam Aug 28, 2018
01a27a7
Merge pull request #109 from codetoart/dev
Aug 29, 2018
4c89e99
Merge pull request #267 from codetoart/master
Aug 29, 2018
2464320
Fix special characters in epub file name <= API 22
hrishikesh-kadam Aug 29, 2018
6ab537e
Fix font size issue
hrishikesh-kadam Aug 30, 2018
34fb154
Close API with all the edge cases
hrishikesh-kadam Aug 31, 2018
2ca3280
Close API feature
hrishikesh-kadam Aug 31, 2018
857926c
Add edge case for close API with minimal code
hrishikesh-kadam Aug 31, 2018
ee1ae07
Prepare v0.4.2
hrishikesh-kadam Aug 31, 2018
93e318f
Merge pull request #110 from codetoart/dev
Aug 31, 2018
2608657
Merge pull request #269 from codetoart/master
Aug 31, 2018
01d3994
Prepare v0.4.3
hrishikesh-kadam Sep 2, 2018
a83161b
Merge pull request #111 from codetoart/dev
Sep 3, 2018
c656023
Merge pull request #272 from codetoart/master
Sep 3, 2018
98168b2
Added slovak translation
JFox-sk Sep 5, 2018
19cb17b
Merge pull request #1 from JFox-sk/JFox-sk-patch-1
JFox-sk Sep 5, 2018
a4bb52e
fix highlight slovak translation
JFox-sk Sep 5, 2018
0209c21
Added czech translation
JFox-sk Sep 5, 2018
aed63eb
Merge pull request #277 from JFox-sk/master
Sep 10, 2018
4cc7715
Integrate local repo of modified r2-streamer-kotlin
hrishikesh-kadam Sep 18, 2018
a4e583a
Integrate v1.0.3-1 of R2 modules from JitPack
hrishikesh-kadam Sep 20, 2018
f5b10e5
Integrate v1.0.3-2 of R2
hrishikesh-kadam Sep 21, 2018
dc0b568
Show text selection PopupWindow
hrishikesh-kadam Oct 3, 2018
a7a1a06
Rename FolioWebView to .kt for VCS history mapping
hrishikesh-kadam Oct 3, 2018
3bcbe1a
Add FolioWebView kotlin code
hrishikesh-kadam Oct 3, 2018
33489b1
Prepare version 0.4.4
hrishikesh-kadam Oct 3, 2018
647a1cf
Merge pull request #292 from codetoart/master
Oct 3, 2018
857318d
Delete highlight click event
hrishikesh-kadam Oct 4, 2018
9e6aef6
Remove unnecessary code and rearrange
hrishikesh-kadam Oct 4, 2018
9520117
Add copy, share, define click events
hrishikesh-kadam Oct 8, 2018
75f1819
Night theme for TextSelection Popup
hrishikesh-kadam Oct 8, 2018
77249b1
Apply theme color to Webview text selection handles
hrishikesh-kadam Oct 9, 2018
3443edf
Remove webViewMarker module and it's related code
hrishikesh-kadam Oct 9, 2018
2bc1953
Remove CheckStyle errors
hrishikesh-kadam Oct 10, 2018
82c74e8
Integrate version 1.0.3-4 of r2_streamer_kotlin
hrishikesh-kadam Oct 10, 2018
76af522
Merge branch 'int/r2-streamer-kotlin' into dev
hrishikesh-kadam Oct 10, 2018
f47f87a
Update README.md
Oct 11, 2018
8cb2781
Prepare version 0.5.1
hrishikesh-kadam Oct 11, 2018
59af4bf
Merge remote-tracking branch 'folioreader-origin/master' into dev
hrishikesh-kadam Oct 11, 2018
8efa133
Merge pull request #112 from codetoart/dev
Oct 11, 2018
8cfa37d
Merge pull request #297 from codetoart/master
Oct 11, 2018
08d81a0
Last read position CFI generation in js
hrishikesh-kadam Oct 16, 2018
2b3c50c
ReadLocator up and running using CFI
hrishikesh-kadam Oct 19, 2018
7928aa5
Edit TTS code
hrishikesh-kadam Oct 23, 2018
0aa55ca
Rename FolioActivity .java to .kt for history mapping
hrishikesh-kadam Oct 23, 2018
bcbf682
Convert FolioActivity from java to kotlin
hrishikesh-kadam Oct 23, 2018
2eeb867
Add last read locator json example
hrishikesh-kadam Oct 23, 2018
4bef860
Rename WebViewPager .java to .kt for history mapping
hrishikesh-kadam Oct 23, 2018
720f6fa
Convert WebViewPager from java to kotlin
hrishikesh-kadam Oct 23, 2018
933ce6d
Rename FolioPageFragment .java to .kt for history mapping
hrishikesh-kadam Oct 23, 2018
e68b09f
Convert FolioPageFragment from java to kotlin
hrishikesh-kadam Oct 23, 2018
1ffa8f6
Improve Android <-> JS communication for highlight
hrishikesh-kadam Oct 24, 2018
078ab70
Deserialize LocatorList to SearchLocatorList
hrishikesh-kadam Nov 1, 2018
975fe40
Select SearchLocator in WebView
hrishikesh-kadam Nov 2, 2018
ccd082d
Prepare version 0.5.2
hrishikesh-kadam Nov 13, 2018
1dbe9e0
Bump up libs and add known issue of API 21 and 22
hrishikesh-kadam Nov 15, 2018
b7fbaaf
Make necessary changes for upcoming Gradle v5.0
hrishikesh-kadam Nov 16, 2018
3d4df7c
Bump up gradle versions for Android Studio 3.4 Canary 4
hrishikesh-kadam Nov 16, 2018
d383f24
Migrate to AndroidX
hrishikesh-kadam Nov 16, 2018
81a8a91
Maintain separate file for versions
hrishikesh-kadam Nov 16, 2018
b7bcdd3
Rearrange packages and Reformat code
hrishikesh-kadam Nov 23, 2018
366e486
Prepare version 0.5.3.dev.1
hrishikesh-kadam Nov 27, 2018
b913aea
Rename AppUtil ext for git history maping
hrishikesh-kadam Nov 28, 2018
fc96bf3
Convert AppUtil java to kotlin
hrishikesh-kadam Nov 28, 2018
c285fc5
Prepare version 0.5.3.dev.2
hrishikesh-kadam Nov 29, 2018
6f3540a
Fix heading bug in Style.css
yh54321 Dec 9, 2018
7de3372
Merge pull request #309 from yh54321/patch-1
Dec 10, 2018
5a4597e
Remove search css stale code
hrishikesh-kadam Dec 10, 2018
07bee5a
Merge remote-tracking branch 'folioreader-origin/master' into dev
hrishikesh-kadam Dec 10, 2018
3742307
Fixes white space bug
yh54321 Dec 11, 2018
eb7fb1b
Merge pull request #311 from yh54321/patch-1
Dec 12, 2018
b0a5c05
Bump up r2 modules versions
hrishikesh-kadam Dec 12, 2018
d5b8aad
Merge remote-tracking branch 'folioreader-origin/master' into dev
hrishikesh-kadam Dec 12, 2018
4e72aae
Fix fast scrolling issue
hrishikesh-kadam Dec 18, 2018
13709e1
Fix bug in r2-streamer-kotlin and r2-shared-kotlin
hrishikesh-kadam Dec 31, 2018
9d8570b
Prepare version 0.5.3
hrishikesh-kadam Dec 31, 2018
b369f33
Merge pull request #113 from codetoart/dev
Dec 31, 2018
c8ccc82
Merge pull request #329 from codetoart/master
Dec 31, 2018
a96d3ab
Update build tools version for Travis CI
hrishikesh-kadam Dec 31, 2018
5b9fffb
Merge pull request #330 from codetoart/master
Dec 31, 2018
929243a
Add KNOWN_ISSUES and CHANGELOG reference to README
hrishikesh-kadam Jan 10, 2019
8701a23
Merge pull request #336 from codetoart/master
Jan 10, 2019
8b398a1
Bump up r2 modules' version
hrishikesh-kadam Jan 10, 2019
babde77
Prepare version 0.5.4 for release
hrishikesh-kadam Jan 11, 2019
3254d84
Merge pull request #114 from codetoart/dev
Jan 11, 2019
51dc6b6
Merge pull request #337 from codetoart/master
Jan 11, 2019
6f42e74
Fix NPE occurring when swiping fast between chapters
egidijusk Mar 29, 2019
a07ded1
FIX NPE thrown when FolioPageFragment is destroyed before lastReadLoc…
egidijusk May 30, 2019
9f00f72
Merge pull request #378 from egidijusk/npe-fix2
Sep 18, 2019
2a3b4d5
Merge pull request #363 from egidijusk/npe-fix
Sep 18, 2019
4138c1d
Update jQuery 3.4.1
KishanViramgama Dec 11, 2019
2ef9269
Merge pull request #417 from KishanViramgama/master
Jan 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Issue Template Examples -
https://github.com/FolioReader/FolioReader-Android/blob/master/.github/Issue_Template_Examples.md -->

Issue / Feature -
FolioReader version -
FolioReader Stock / Modified -
Android SDK -
Mobile / Tablet / Emulator Info -
Crash / Error -

Steps to reproduce / Describe in detail -
44 changes: 44 additions & 0 deletions .github/Issue_Template_Examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
### Example No 1 -

Issue / Feature - Issue <br/>
FolioReader version - 0.3.7 <br/>
FolioReader Stock / Modified - Stock <br/>
Android SDK - 4.4.4<br/>
Mobile / Tablet / Emulator Info - Samsung Galaxy S3<br/>
Crash / Error - Crash<br/>

Steps to reproduce / Describe in detail - <br/>

I'm using library version 0.3.7
When trying to open epub from my Activity, eg -

```
FolioReader folioReader = FolioReader.getInstance(getApplicationContext());
folioReader.openBook(R.raw.barrett);
```

Getting this error -
(While i'm opening the file from my activity)

```
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java:672)
at android.app.ContextImpl.startActivity(ContextImpl.java:659)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:331)
at com.folioreader.FolioReader.openBook(FolioReader.java:97)
at com.devs.ncert.activity.MainActivity$1.onClick(MainActivity.java:35)
```

### Example No 2 -

Issue / Feature - Feature <br/>
FolioReader version - 0.3.9 <br/>
FolioReader Stock / Modified - <br/>
Android SDK - <br/>
Mobile / Tablet / Emulator Info - <br/>
Crash / Error - <br/>

Steps to reproduce / Describe in detail - <br/>

Hey guys! I need Horizontal scrolling pagination reading mode. <br/>
Is it possible to make this feature available?
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild

# Custom
_site

Expand Down Expand Up @@ -37,4 +47,7 @@ out
# Maven
target
release.properties
pom.xml.*
pom.xml.*

# Readium DRM LCP
liblcp.aar
26 changes: 16 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
language: android

before_install:
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
script:
- ./gradlew build

android:
components:
- build-tools-27.0.3
- android-27
- extra-android-m2repository

licenses:
- android-sdk-license-.+
- android-sdk-preview-license-.+
- android-sdk-license-.+

components:
# https://docs.travis-ci.com/user/languages/android/#Installing-a-newer-SDK-Platform-Tools-revision
- tools
- platform-tools
- tools

# The BuildTools version used by your project
- build-tools-28.0.3

script:
./gradlew build
# The SDK version used to compile your project
- android-28
- extra-android-m2repository
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Change Log

## 0.5.4

- Search API from codetoart/r2-streamer-kotlin now use window.find() instead of Rangy solution.

## 0.5.3

- FolioReader migrated to AndroidX. You will have to migrate your project to AndroidX. Read more about it here - [Migrating to AndroidX](https://developer.android.com/jetpack/androidx/migrate)
- Search API calls made asynchronous.

### Bugs Fixed

- FolioReader/FolioReader-Android#190
- FolioReader/FolioReader-Android#276
- FolioReader/FolioReader-Android#239
- FolioReader/FolioReader-Android#308
- FolioReader/FolioReader-Android#284
- FolioReader/FolioReader-Android#298

## 0.5.2 (Unreleased)

- Developer now don't need to add network_security_config.xml explicitly.
- Android Min SDK raised to API 21 as Chrome is stuck on version 30 on API 19.
- ReadPosition replaced with ReadLocator using CFI.
- TTS feature temporarily disabled, see KNOWN_ISSUES.md for more information.
- SearchQueryResults and SearchItem replaced with SearchLocator using CFI.

## 0.5.1

- r2-streamer-java replaced with r2-streamer-kotlin and r2-shared-kotlin
- WebViewMarker replaced with Native text selection popup.
- Media Overlay feature temporarily unavailable, see KNOWN_ISSUES.md for more information.

## 0.4.1

- Developer now don't need to specify permissions and FolioActivity tag in AndroidManifest.xml
23 changes: 23 additions & 0 deletions KNOWN_ISSUES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Known Issues

This is a list of major known issues. For the latest list of all issues see the
[Github Issues page](https://github.com/FolioReader/FolioReader-Android/issues)

## Errors on API 21 and 22 with Webview lower than version 44

FolioReader might not work properly on API 21 and 22 Emulator images.
As these images have Android System Webview lower than version 44.
Devices or Emulator of API 21 and 22 with Google Play Store will be
able to run FolioReader without any error after updating Android System
Webview to version 44+

## Media Overlay

From version 0.5.1, Media Overlay would not work as the streamer implementation is not done yet in r2-streamer-kotlin.

## TTS

From version 0.5.2, TTS is disabled.
In previous versions, sentences were formed by changing the DOM structure.
To implement TTS without changing DOM would require NLP to extract sentences.
As of now, no major reading systems other than Google Play Books implements TTS bug free.
82 changes: 47 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://api.travis-ci.org/FolioReader/FolioReader-Android.svg?branch=master)](https://travis-ci.org/FolioReader/FolioReader-Android)

FolioReader-Android is an ePub reader written in Java.
FolioReader-Android is an EPUB reader written in Java and Kotlin.

### Features

Expand All @@ -13,75 +13,80 @@ FolioReader-Android is an ePub reader written in Java.
- [x] List / Edit / Delete Highlights
- [x] Handle Internal and External Links
- [x] Portrait / Landscape
- [x] Reading Time Left / Pages left
- [ ] Reading Time Left / Pages left
- [x] In-App Dictionary
- [x] Media Overlays (Sync text rendering with audio playback)
- [x] TTS - Text to Speech Support
- [ ] Media Overlays (Sync text rendering with audio playback)
- [ ] TTS - Text to Speech Support
- [ ] Parse epub cover image
- [ ] PDF support
- [ ] Book Search
- [x] Book Search
- [x] Add Notes to a Highlight
- [ ] Better Documentation
- [x] Last Read Position Listener
- [x] Last Read Locator
- [x] Horizontal Reading
- [x] Distraction Free Reading

## Demo
##### Custom Fonts
![Custom fonts](https://cloud.githubusercontent.com/assets/1277242/19012915/0661c7b2-87e0-11e6-81d6-8c71051e1074.gif)
##### Day and Night Mode
![Day night mode](https://cloud.githubusercontent.com/assets/1277242/19012914/f42059c4-87df-11e6-97f8-29e61a79e8aa.gif)
##### Text Highlighting
##### Text Highlighting
![Highlight](https://cloud.githubusercontent.com/assets/1277242/19012904/c2700c3a-87df-11e6-97ed-507765b3ddf0.gif)
##### Media Overlays
##### Media Overlays
![Media Overlay](https://cloud.githubusercontent.com/assets/1277242/19012908/d61f3ce2-87df-11e6-8652-d72b6a1ad9a3.gif)

### Gradle
Add following dependency to your app build.gradle
``` java
compile 'com.folioreader:folioreader:0.3.9'
```

Add maven repository to your top level build.gradle
Add following dependency to your root project `build.gradle` file:

```groovy
allprojects {
repositories {
maven {
url "http://dl.bintray.com/mobisystech/maven"
}
...
jcenter()
maven { url "https://jitpack.io" }
...
}
}
```

### Usage

First add activity tag for FolioActivity in your AndroidManifest.xml
Add following dependency to your app module `build.gradle` file:

```xml
<activity
android:name="com.folioreader.ui.folio.activity.FolioActivity"
android:configChanges="orientation|screenSize"
android:theme="@style/AppTheme.NoActionBar"/>
```groovy
dependencies {
...
implementation "com.folioreader:folioreader:0.5.4"
...
}
```

To use FolioReader, get singleton object of **FolioReader**.
### Enable Multidex support

Enable Multidex support as explained in this [Android Doc](https://developer.android.com/studio/build/multidex)

### Usage

Get singleton object of `FolioReader`:

```java
FolioReader folioReader = FolioReader.getInstance(getApplicationContext());
FolioReader folioReader = FolioReader.get();
```

Call the function openBook().
Call the function `openBook()`:

##### opening book from assets
##### opening book from assets -

```java
folioReader.openBook("file:///android_asset/adventures.epub");
folioReader.openBook("file:///android_asset/TheSilverChair.epub");
```
##### opening book from raw
##### opening book from raw -

```java
folioReader.openBook(R.raw.barrett);
folioReader.openBook(R.raw.accessible_epub_3);
```


## WIKI

* [Home](https://github.com/FolioReader/FolioReader-Android/wiki)
Expand All @@ -91,14 +96,20 @@ folioReader.openBook(R.raw.barrett);
* [Highlight Action](https://github.com/FolioReader/FolioReader-Android/wiki/Highlight-Action)
* [Highlight Event](https://github.com/FolioReader/FolioReader-Android/wiki/Highlight-Event)
* [Providing External Highlight](https://github.com/FolioReader/FolioReader-Android/wiki/Providing-External-Highlight)
* [ReadPosition](https://github.com/FolioReader/FolioReader-Android/wiki/ReadPosition)
* [Get ReadPosition](https://github.com/FolioReader/FolioReader-Android/wiki/Get-ReadPosition)
* [Set ReadPosition](https://github.com/FolioReader/FolioReader-Android/wiki/Set-ReadPosition)
* [ReadLocator](https://github.com/FolioReader/FolioReader-Android/wiki/ReadLocator)
* [Clean up code](https://github.com/FolioReader/FolioReader-Android/wiki/Clean-up-code)

## Reporting Issue

See [KNOWN_ISSUES](https://github.com/FolioReader/FolioReader-Android/blob/master/KNOWN_ISSUES.md) and [CHANGELOG](https://github.com/FolioReader/FolioReader-Android/blob/master/CHANGELOG.md) first before reporting any issue. <br />
Please follow [Issue Template](https://github.com/FolioReader/FolioReader-Android/blob/master/.github/ISSUE_TEMPLATE.md) to report any issue.

## Share your application
If you are using FolioReader in your application, share your application link in [this issue](https://github.com/FolioReader/FolioReader-Android/issues/291)

### Credits
1. <a href="https://github.com/daimajia/AndroidSwipeLayout">SwipeLayout</a>
2. <a href="https://github.com/readium/r2-streamer-java">r2-streamer-java</a>
2. <a href="https://github.com/readium/r2-streamer-kotlin">r2-streamer-kotlin</a>
3. <a href="http://developer.pearson.com/apis/dictionaries">Pearson Dictionaries</a>
4. <a href="https://github.com/timdown/rangy">rangy</a>

Expand Down Expand Up @@ -129,3 +140,4 @@ folioReader.openBook(R.raw.barrett);

## License
FolioReaderKit is available under the BSD license. See the [LICENSE](https://github.com/FolioReader/FolioReader-Android/blob/master/License.md) file.

1 change: 0 additions & 1 deletion ViewPager/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions ViewPager/build.gradle

This file was deleted.

14 changes: 0 additions & 14 deletions ViewPager/src/main/AndroidManifest.xml

This file was deleted.

Loading