- Contact Form
- Create a Lock Screen Device App with Android Studio
- How to Create a Custom Lock Screen for Android (Part I)
- Popular Posts
- Never miss out
- 10 best Android lock screen apps and lock screen replacement apps!
- Always on AMOLED
- Your Answer
- Subscribe to RSS
- How To Make an Android Custom Lock Screen
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. AndroidPdfViewer 1.
Create a Lock Screen Device App with Android Studio
Version 1. Library for displaying PDF documents on Android, with animations , gestures , zoom and double tap support. Works on API 11 Android 3. Licensed under Apache License 2.
How to Create a Custom Lock Screen for Android (Part I)
From version 2. To use scroll handle just register it using method Configurator scrollHandle.
This method accepts implementations of ScrollHandle interface. There is default implementation shipped with AndroidPdfViewer, and you can use it with. DefaultScrollHandle is placed on the right when scrolling vertically or on the bottom when scrolling horizontally.
By using constructor with second argument new DefaultScrollHandle this, true , handle can be placed left or top. You can also create custom scroll handles, just implement ScrollHandle interface.
All methods are documented as Javadoc comments on interface source. Version 2. Every provider implements DocumentSource interface.
Predefined providers are available in com. Version 3. By default, DefaultLinkHandler is used and clicking on link that references page in same document causes jump to destination page and clicking on link that targets some URI causes opening it in default application.
You can also create custom link handlers, just implement LinkHandler interface and set it using Configurator linkHandler LinkHandler method. Take a look at DefaultLinkHandler source to implement custom behavior. There are three zoom levels: min default 1 , mid default 1.
Never miss out
On first double tap, view is zoomed to mid level, on second to max level, and on third returns to min level. If you are between mid and max levels, double tapping causes zooming to max and so on.
Apk must contain all this libraries to run on every device available on market. Fortunately, Google Play allows us to upload multiple apks, e.
There is good article on automatically splitting your application into multiple apks, available here. You only need to do this in your application, no need for forking PdfiumAndroid or so. Downloading files is long running process which must be aware of Activity lifecycle, must support some configuration, data cleanup and caching, so creating such module will probably end up as new library.
10 best Android lock screen apps and lock screen replacement apps!
You have to store current page number and then set it with pdfView. Use FitPolicy. WIDTH policy or add following snippet when you want to fit desired page in document with different page sizes:. You can use a combination of the following settings to get scroll and fling behaviour similar to a ViewPager:. If you have any suggestions on making this lib better, write me, create issue or write some code and send pull request.
Created with the help of android-pdfview by Joan Zapata.
Always on AMOLED
Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up. Java Branch: master New pull request.
Find file. Sign in Sign up.
Go back. Launching Xcode If nothing happens, download Xcode and try again. Latest commit db39 Aug 18, Looking for new maintainer! What's new in 3.
Subscribe to RSS
ProGuard If you are using ProGuard, add following rule to proguard config file: -keep class com. Called only for visible pages. To define spacing color, set view background. You signed in with another tab or window. Reload to refresh your session.
How To Make an Android Custom Lock Screen
You signed out in another tab or window. Update version. Aug 18, Initial sources commit. Jun 6, Initial commit. Jun 2,