BouncingJelly

Introduction: 灵感来自于 MIUI,用于小彩蛋的 View-带有阻尼效果
More: Author   ReportBugs   
Tags:

最新版本:

可以嵌套任何 View,滑动到顶部或者底部,会有一个阻尼效果进行缩放整个页面,松开手指回弹。灵感来自于 MIUI。

效果图

1. 普通的页面

嵌套普通的 View

2. 嵌套 RecyclerView

嵌套 RecyclerView

使用

  1. 添加 Jitpack

     allprojects {
         repositories {
             ...
             maven { url 'https://jitpack.io' }
         }
     }
    
  2. 在 gradle 中 compile

      compile 'com.github.aohanyao:BouncingJelly:1.0.4'
    
  3. xml

     因为 BouncingJellyView 是继承自 ScrollView,所以必须要嵌套一层 ViewGroup 才能使用。
    

    <com.aohanyao.jelly.library.BouncingJellyView                                                            xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <任意 ViewGroup>
            .........你的内容
        </任意 ViewGroup>

    </com.aohanyao.jelly.library.BouncingJellyView>

Version History

2018 年 3 月 6 日

修复issues/1#

2018 年 3 月 5 日

剔除多余的包

2017 年 1 月 11 日

1.0.0

初步完成,增加到仓库。
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools