项目作者: nahzur-h

项目描述 :
recyclerview holder animation
高级语言: Kotlin
项目地址: git://github.com/nahzur-h/ViewHolder-Slide-Helper.git
创建时间: 2016-06-30T15:46:08Z
项目社区:https://github.com/nahzur-h/ViewHolder-Slide-Helper

开源协议:Apache License 2.0

下载


ViewHolder-Slide-Helper

A grace recycleriew holder animation library for Android

Screenshots


ViewHolder-Slide-Helper use Animation and Scroller, expend recyclerview holder

Gradle

Add it in your root build.gradle at the end of repositories:

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }

Add the dependency:

  1. dependencies {
  2. compile 'com.github.ruzhan123:ViewHolder-Slide-Helper:v1.3'
  3. }

Usage

1, recyclerview adapter create ISlideHelper

  1. public class SlideAdapter extends RecyclerView.Adapter {
  2. private ISlideHelper mISlideHelper = new ISlideHelper();

2, use ISlideHelper add holder

  1. @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  2. OneSlideViewHolder oneSlideViewHolder = new OneSlideViewHolder(
  3. LayoutInflater.from(parent.getContext()).inflate(R.layout.one_item, parent, false));
  4. //add holder
  5. mISlideHelper.add(oneSlideViewHolder);
  6. return oneSlideViewHolder;
  7. }

Developed by

ruzhan - dev19921116@gmail.com

License

  1. Copyright 2017 ruzhan
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.