Blinds

在微信的「聊天信息」中有了「聊天小程序」这一项。最近在 GitHub 首页,你的相关状态比如说 issues 讨论状态会在顶部有个这个效果,鼠标触碰的话,折叠效果会打开。
Android 百叶窗折叠效果


使用
implementation 'com.lovejjfg.blinds:blinds:lastedversion'
xml:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/blinds"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:blindsFold="true"
app:blindsFraction="60%"
app:blindsMaxCount="4"
app:blindsRevertDraw="true"
tools:context="com.lovejjfg.demo.MainActivity">
code:
blinds4.orientation = RIGHT
blinds4.maxCount = 4
blinds4.extraSpace = 20
blinds4.isRevertDraw = true
blinds4.setAnimationDuration(1000)
blinds4.setInterpolator(BounceInterpolator())
版本
0.0.1
支持折叠方向以及比例设置
0.0.2
增加属性 isRevertDraw
博客介绍了类似微信「聊天小程序」和GitHub首页的折叠效果,重点讲述了Android百叶窗折叠效果。给出了使用依赖的代码,以及xml和代码中的相关属性设置,还提及了不同版本的更新内容,如支持折叠方向及比例设置、增加属性isRevertDraw。
518

被折叠的 条评论
为什么被折叠?



