Custom RecyclerView#Adapter that implement features like ExpandableListView
Custom RecyclerView#Adapter that implement features like ExpandableListView
You can watch a short Demo Video on YouTube and download Sample APK in Releases section.
getParentType
and getChildType
,support create different Parent or/and Child ItemViewnotifyParentItemMoved
、notifyChildItemMoved
、notifyParentItemRangeChanged
、notifyParentItemRangedRemoved
、notifyChildItemRangeInserted
、notifyChildItemRangeRemoved
、notifyChildItemRangeChanged
apiViewHolder
setExpandCollapseMode
! eg: MODE_SINGLE_EXPAND,in this mode,when expand another parentItem will auto collapse last expanded parentItem.
build.gradle
:dependencies {
compile 'com.github.huajianjiang:expandablerecyclerview:1.1.0'
}
pom.xml
if you are using Maven instead of Gradle:<dependency>
<groupId>com.github.huajianjiang</groupId>
<artifactId>expandablerecyclerview</artifactId>
<version>1.1.0</version>
<type>pom</type>
</dependency>
I don't known,but at least I have used it in my apps, for example:
Copyright (C) 2015 Huajian Jiang
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.