This RecyclerView extension library provides Google's Inbox app like swiping and Play Music app like drag and drop sorting features. Works on API level 9 or later.
NOTE: This library does not contain Snackbar. The above example app uses third-party library. (thx. Snackbar developed by William Mora ).
- API level 9 or later (However, some animations are not supported on Gingerbread.)
- Version 0.5.0 (January 25, 2015)
This library is published on jCenter. Just add these lines to build.gradle
.
dependencies {
compile 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.5.0'
}
Please check the RecyclerListViewFragment
and the
MyItemAdapter
classes in the example code.
Class/Interface name | Description |
---|---|
RecyclerViewDragDropManager |
Provides Drag & Drop sort operation |
DraggableItemAdapter<T> |
Implement this interface on your RecyclerView.Adapter |
DraggableItemViewHolder |
Implement this interface on your RecyclerView.ViewHolder |
Class/Interface name | Description |
---|---|
RecyclerViewSwipeManager |
Provides Swipe operation |
SwipeableItemAdapter<T> |
Implement this interface on your RecyclerView.Adapter |
SwipeableItemViewHolder |
Implement this interface on your RecyclerView.ViewHolder |
Class/Interface name | Description |
---|---|
ItemShadowDecorator |
Drop shadow decoration for pre-Lollipop devices |
SimpleListDividerDecorator |
Simple list divider decoration |
Class name | Description |
---|---|
RecyclerViewTouchActionGuardManager |
Suppress scrolling while item animations are running |
AbstractDraggableItemViewHolder |
ViewHolder class which implements boilerplate code of DraggableItemViewHolder interface |
AbstractSwipeableItemViewHolder |
ViewHolder class which implements boilerplate code of SwipeableItemViewHolder interface |
AbstractDraggableSwipeableItemViewHolder |
ViewHolder class which implements boilerplate code of DraggableItemViewHolder and SwipeableItemViewHolder interfaces |
This library is licensed under the Apache Software License, Version 2.0.
See LICENSE
for full of the license text.
Copyright (C) 2015 Haruki Hasegawa
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.