Popularity
2.5
Stable
Activity
2.8
-
101
6
14

Description

Parallax Scrolling View.

# Features - automatic scrolling with different speeds - minimal integration - gpu accelerated - supports vector drawables - supports bitmap drawables - supports ViewPager2 - argb interpolated gradient on viewpager scrolling - updates statusBar color on scroll

Programming language: Kotlin
License: Apache License 2.0
Latest version: v1.0.0

ParallaxScrollingView alternatives and similar packages

Based on the "Kotlin" category.
Alternatively, view ParallaxScrollingView alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ParallaxScrollingView or a related project?

Add another 'Kotlin' Package

README

Donation About Jan Rabe

ParallaxScrollingView Hits-of-Code Javadoc Build Status API Gradle Version Kotlin GitHub license androidx

Parallax Scrolling View.

  • automatic scrolling with different speeds
  • minimal integration
  • gpu accelerated
  • supports vector drawables
  • supports bitmap drawables
  • supports ViewPager2
  • argb interpolated gradient on viewpager scrolling
  • updates statusBar color on scroll

[[Screenshot](sample_big.gif)](sample_big.gif)

How to use

1 add ParallaxScrollingView to [your layout](app/src/main/res/layout/activity_main.xml#L21-L82)

<net.kibotu.parallaxscrollingview.ParallaxScrollingView
    android:id="@+id/wave1"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:speed="@dimen/wave1_speed"
    app:src="@drawable/ic_wave"
    android:layout_width="0dp"
    android:layout_height="wrap_content" />

2 (Optional) add [ParallaxScrollingViewOnPageScrollListener](app/src/main/java/net/kibotu/parallaxscrollingview/demo/MainActivity.kt#L28)) to ViewPager2

viewPager.registerOnPageChangeCallback(ParallaxScrollingViewOnPageScrollListener(listOf(wave1, wave2, wave3, wave4, wave5, wave6), 2f))

3(Optional) add [OffsetOnPageScrollListener](app/src/main/java/net/kibotu/parallaxscrollingview/demo/MainActivity.kt#L30) to ViewPager2

viewPager.registerOnPageChangeCallback(OffsetOnPageScrollListener(this, root, items.indices.map { backgrounds[it] }, true))

How to install

repositories {
    maven {
    url "https://jitpack.io"
    }
}

dependencies {
    implementation 'com.github.kibotu:ParallaxScrollingView:-SNAPSHOT'
}

Notes

Follow me on Twitter: @wolkenschauer

Let me know what you think: [email protected]

Contributions welcome!

License

Copyright 2019 Jan Rabe

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


*Note that all licence references and agreements mentioned in the ParallaxScrollingView README section above are relevant to that project's source code only.