Skip to content

aohanyao/BouncingJelly

Repository files navigation

##BouncingJellyView

最新版本:

可以嵌套任何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

初步完成,增加到仓库。

About

灵感来自于MIUI,用于小彩蛋的View-带有阻尼效果

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages