Skip to content
Joe edited this page Aug 1, 2018 · 1 revision

Blinds

Download

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

Blinds Blinds

使用

implementation 'com.lovejjfg.blinds:blinds:lastedversion'

xml:

    <com.lovejjfg.blinds.BlindsLayout
        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

    • support fold fraction and fold orientation
  • 0.0.2

    • add field isRevertDraw
Clone this wiki locally