美文网首页
2018-12-21

2018-12-21

作者: huajian_jiang | 来源:发表于2018-12-21 11:19 被阅读0次

ExpandableRecyclerView

Custom RecyclerView#Adapter that implement features like ExpandableListView
[图片上传失败...(image-d5b98c-1565488154891)]


Koala.jpg

但是


Koala.jpg

Demo

You can watch a short Demo Video on YouTube and download Sample APK in Releases section.
Here is some code:

<p>uuuu</p>
print(123)

More code:

print(123)

Features

  • support getParentType and getChildType,support create different Parent or/and Child ItemView
  • support extra notifyParentItemMovednotifyChildItemMovednotifyParentItemRangeChangednotifyParentItemRangedRemovednotifyChildItemRangeInsertednotifyChildItemRangeRemovednotifyChildItemRangeChanged api
  • encapsulate ViewHolder
  • now support set specified ParentItem which can be expandable dynamically
  • now support set ExpandableAdapter's setExpandCollapseMode! eg: MODE_SINGLE_EXPAND,in this mode,when expand another parentItem will auto collapse last expanded parentItem.

Screenshots

[图片上传失败...(image-2bbbb4-1545571427382)]
[图片上传失败...(image-420e6c-1545571427382)]
[图片上传失败...(image-ad7781-1545571427382)]

Usage

  • Add a dependency to your build.gradle:
dependencies {
    compile 'com.github.huajianjiang:expandablerecyclerview:1.1.0'
}
  • or to your 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>

Thanks

License

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.
ic_dog.jpg
2f239992358c8c31bc6139b6fbb0bb44.jpg

相关文章

网友评论

      本文标题:2018-12-21

      本文链接:https://www.haomeiwen.com/subject/tnhmkqtx.html