Android Concentric Onboarding library

Overview

ConcentricOnboarding

Android Concentric Onboarding library

License: MIT API

Slide Mode Reveal Mode

ConcentricOnboarding is a viewpager library that can be used to make awesome onboarding designs.

If you like this, you'll like LiquidSwipe as well.

Demo app

To run the demo project, clone the repository and run it via Android Studio.
(OR)
Download the latest demo apk from releases.

Usage

Set up the dependency

  1. Add the JitPack repository to your root build.gradle at the end of repositories:
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
  1. Add the ConcentricOnboarding dependency in the build.gradle:
implementation 'com.github.Chrisvin:ConcentricOnboarding:1.0'

Use ConcentricOnboardingViewPager instead of the normal ViewPager

">

   

    
    


   

Use a ConcentricOnboardingLayout as the base container in the fragment layouts

">


   

    


   


And you're done, easy-peasy. ^_^

Customization

Via XML

">

  

Via Programmatically

viewpager.mode = ConcentricOnboardingViewPager.Mode.REVEAL // Default is SLIDE
viewpager.setDuration(3000) // Default is 1000
viewpager.translationXFactor = 1.5f // Default is 2f
viewpager.translationYFactor = 1f // Default is 0.35f
viewpager.scaleXFactor = 2f // Default is 0.5f
viewpager.scaleYFactor = 2f // Default is 0.5f
viewpager.revealCenterPoint = PointF(centerX, centerY) // Default is screen center
viewpager.revealRadius = radius // Default is 0

Creating custom swipe animations

The concept for the ClipPathProvider in ConcentricOnboarding is the same as that in the LiquidSwipe library & EasyReveal library (If you haven't already, then you should really check it out).

You can create your own swipe animation by extending the ClipPathProvider and implementing the getPath() method. getPath() provides the Path for a given percent value on the provided view. The path gotten from getPath() is then used to clip the view using canvas.clipPath(path, op) (The op value is provided by the ClipPathProvider as well). You can then set your custom ClipPathProvider to your layouts.

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

Credits

  1. Cuberto - Onboarding design inspiration
  2. Alvaro Fabre - Designer of the lottie animations in the demo app

License

MIT License

Copyright (c) 2020 Jem

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
You might also like...
A simple app that consumes The Ricky & Morty API to display the tv show characters, was trying to learn about pagination with the paging 3 library
A simple app that consumes The Ricky & Morty API to display the tv show characters, was trying to learn about pagination with the paging 3 library

Ricky&MortyAPIDemo A simple app that consumes The Rick and Morty API which is a REST and GraphQL API based on the television show Rick and Morty. I wa

Three material Dots Indicators for view pagers in Android !
Three material Dots Indicators for view pagers in Android !

Material View Pager Dots Indicator This library makes it possible to represent View Pager Dots Indicator with 3 different awesome styles ! It supports

A pager for Android with parallax effect

ParallaxPagerTransformer A pager transformer for Android with parallax effect Installation in your build.gradle file dependencies { // ... com

A nicer-looking, more intuitive and highly customizable alternative for radio buttons and dropdowns for Android.
A nicer-looking, more intuitive and highly customizable alternative for radio buttons and dropdowns for Android.

SwipeSelector Undergoing for some API changes for a 2.0 major version, see example usage in the sample module! What and why? Bored of dull looking rad

Android auto scroll viewpager or viewpager in viewpager
Android auto scroll viewpager or viewpager in viewpager

Android Auto Scroll ViewPager ViewPager which can auto scrolling, cycling, decelerating. ViewPager which can be slided normal in parent ViewPager. Att

An android ViewPager extension allowing infinite scrolling

NO LONGER MAINTAINED LoopingViewPager An android ViewPager extension allowing infinite scrolling. You can use it with "standart" PagerAdapter (inflati

Augment Android's ViewPager with wrap-around functionality.

Infinite View Pager Augment Android's ViewPager with wrap-around functionality. Original StackOverflow question: http://stackoverflow.com/questions/75

[Development stopped in 2014. Unfinished and not stable - not recommended to use.] An easy-to-use ViewPager subclass with parallax background effect for Android apps.

Development stopped in 2014 Not developed since 2014. Unfinished and not stable - not recommended to use. ParallaxViewPager An easy-to-use ViewPager s

Android - A ViewPager page indicator that displays the current page number and (optionally) the page count
Android - A ViewPager page indicator that displays the current page number and (optionally) the page count

NumericPageIndicator A ViewPager page indicator that displays the current page number and (optionally) the page count. It can also display buttons to

Comments
  • java.lang.IllegalStateException: Underflow in restore - more restores than saves

    java.lang.IllegalStateException: Underflow in restore - more restores than saves

    Getting this error in the XML Layout and app crashes with the exception on start:

    java.lang.IllegalStateException: Underflow in restore - more restores than saves
            at android.graphics.Canvas.restore(Canvas.java:679)
            at com.jem.concentriconboarding.layout.ConcentricOnboardingLinearLayout.dispatchDraw(ConcentricOnboardingLinearLayout.kt:87)
            at android.view.View.updateDisplayListIfDirty(View.java:21217)
            at android.view.View.draw(View.java:22081)
            at android.view.ViewGroup.drawChild(ViewGroup.java:4516)
            at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277)
            at android.view.View.draw(View.java:22353)
            at androidx.viewpager.widget.ViewPager.draw(ViewPager.java:2426)
            at android.view.View.updateDisplayListIfDirty(View.java:21226)
            at android.view.View.draw(View.java:22081)
            at android.view.ViewGroup.drawChild(ViewGroup.java:4516)
            at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277)
            at android.view.View.updateDisplayListIfDirty(View.java:21217)
            at android.view.View.draw(View.java:22081)
            at android.view.ViewGroup.drawChild(ViewGroup.java:4516)
            at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277)
            at android.view.View.updateDisplayListIfDirty(View.java:21217)
            at android.view.View.draw(View.java:22081)
            at android.view.ViewGroup.drawChild(ViewGroup.java:4516)
            at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277)
            at android.view.View.updateDisplayListIfDirty(View.java:21217)
            at android.view.View.draw(View.java:22081)
            at android.view.ViewGroup.drawChild(ViewGroup.java:4516)
            at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277)
            at android.view.View.updateDisplayListIfDirty(View.java:21217)
            at android.view.View.draw(View.java:22081)
            at android.view.ViewGroup.drawChild(ViewGroup.java:4516)
            at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277)
            at android.view.View.updateDisplayListIfDirty(View.java:21217)
            at android.view.View.draw(View.java:22081)
            at android.view.ViewGroup.drawChild(ViewGroup.java:4516)
            at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277)
            at android.view.View.draw(View.java:22353)
            at com.android.internal.policy.DecorView.draw(DecorView.java:806)
            at android.view.View.updateDisplayListIfDirty(View.java:21226)
            at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:559)
            at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:565)
            at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:642)
            at android.view.ViewRootImpl.draw(ViewRootImpl.java:4101)
            at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3828)
            at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3099)
            at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1952)
            at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8171)
            at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972)
            at android.view.Choreographer.doCallbacks(Choreographer.java:796)
            at android.view.Choreographer.doFrame(Choreographer.java:731)
            at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
            at android.os.Handler.handleCallback(Handler.java:938)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:223)
            at android.app.ActivityThread.main(ActivityThread.java:7656)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
    
    opened by dinukapj 0
Releases(1.0)
Owner
Chrisvin Jem
Programmer
Chrisvin Jem
Circular motion is a ViewPager library that can be used to make Awesome Onboarding designs.

CircularMotion Android Circular Motion Onboarding library Circular motion is a ViewPager library that can be used to make Awesome Onboarding designs.

Farham Hosseini 4 Nov 5, 2021
Library containing common animations needed for transforming ViewPager scrolling for Android v13+.

ViewPagerTransforms Library containing common animations needed for transforming ViewPager scrolling on Android v13+. This library is a rewrite of the

Ian Thomas 2.5k Dec 31, 2022
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.

Android ViewPagerIndicator Paging indicator widgets that are compatible with the ViewPager from the Android Support Library to improve discoverability

Jake Wharton 10.2k Jan 3, 2023
ViewPagers library for Android

freepager Ready-to-use view pagers for your project. Based on Swipes navigation demo repository Usage: Gradle: dependencies { compile 'pro.alexza

Alex Zaitsev 460 Nov 25, 2022
Android library for fluid tablayout animation as seen on Snapchat.

SnapTabLayout Show some ❤️ and star the repo to support the project This library is the implementation of TabLayout as seen on popular messaging app S

Niranjan Kurambhatti 714 Dec 25, 2022
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.

Android ViewPagerIndicator Paging indicator widgets that are compatible with the ViewPager from the Android Support Library to improve discoverability

Jake Wharton 10.2k Jan 5, 2023
Android LiquidSwipe Library

Android LiquidSwipe Library

Chrisvin Jem 838 Dec 29, 2022
A Material Design ViewPager easy to use library

MaterialViewPager Material Design ViewPager easy to use library Sample And have a look on a sample Youtube Video : Youtube Link Download In your modul

Florent CHAMPIGNY 8.2k Dec 29, 2022
Pixplicity 915 Nov 8, 2022
Library for Sliding Tab With Color Icons!

Sliding Tab With Color Icons Sliding Tab With Color Icons! Kindly use the following links to use this library: In build.gradle (Project) allprojects {

Prabhakar Thota 35 Jan 22, 2022