An ExpandableRecycleradapter with Recyclerview
APACHE-2.0 License
An ExpandableRecycleradapter with Recyclerview
#Screenshots
##Gradle
compile 'com.zaihuishou:expandablerecycleradapter:1.0.3'
##Maven
<dependency>
<groupId>com.zaihuishou</groupId>
<artifactId>expandablerecycleradapter</artifactId>
<version>1.0.3</version>
<type>pom</type>
</dependency>
#How to use
Expandable item:
data model class must implement
ExpandableListItem,and viewholder class must extend
AbstractExpandableAdapterItem
example:`public class Company implements ExpandableListItem` and `public class CompanyItem AbstractExpandableAdapterItem`
Normal item
viewholder extend
AbstractAdapterItem
example:public class EmployeeItem extends AbstractAdapterItem
Implement BaseExpandableAdapter
mBaseExpandableAdapter = new BaseExpandableAdapter(mCompanylist) {
@NonNull
@Override
public AbstractAdapterItem<Object> getItemView(Object type) {
return null;
}
@Override
public Object getItemViewType(Object t) {
return -1;
}
};
#Databinding Use
#Thanks
##License
Copyright 2016 zaihuishou
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 expressor implied.See the License for the specific language governing permissions and limitations under the License.