Git Product home page Git Product logo

recyclerparallax's Introduction

RecyclerParallax

Android Recycler View with Parallax Effect on each item

How to use

This in an example app, not a library so in order to implement it please take a look at these files:

  • ParallaxAdapter.java -> on the method bindView it is set the image to-be parallaxed as the background with specific size, and provide the method retranslate to translate the image
  • ParallaxRecyclerView.java -> custom recyclerview that bind the recyclerview with the scroll listener
  • ParallaxScrollListener.java -> custom Scroll listener that perform the call Adapter retranslate method

basically the technique is use the scroll listener to call every viewholder to translate the background image based on its position

License

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

   https://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.

Demo Video

Android Arsenal

recyclerparallax's People

Contributors

bopbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

recyclerparallax's Issues

Usage

I've watched the Demo Video. This is such a wonderful project that many people would use.

Please provide notes on its Usage, so we could all know how to set it up in our projects.

Request : Backward compatibility

Thanks for this awesome library. It really works fine and smoothly...you are my saviour :) ๐Ÿ‘
Please Is it possible to make it word on API 10 ?

Image error

i dont know why , i try to put your code in my app but the images dont fill the imageview and when i change the size of the image and in the other smartphone the image dont fill again

Parallax Effect Performance Issue

I am not sure the scenario is related to RecyclerView itself or other thing.

if you replace the imageview resource to over 100KB, the parallax effect will be extremely laggy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.