Android -------- BouncingJellyView 果冻视图(阻尼效果)

Android -------- BouncingJellyView 果冻视图(阻尼效果),第1张

概述分享一个不错的效果,分享给大家 BouncingJellyView 果冻视图,就像果冻一样伸缩d跳,也叫阻尼效果。这个效果在MIUI上面到处都可以看到。 效果图:     使用 项目更目录bulid.gradle下   allprojects { repositories {     ...    maven { url ‘https://jitpack.io‘ }   } } app目录下bul

分享一个不错的效果,分享给大家

BouncingJellyVIEw 果冻视图,就像果冻一样伸缩d跳,也叫阻尼效果。这个效果在Miui上面到处都可以看到。


效果图:

   

使用

项目更目录bulID.gradle下

 

allprojects {
repositorIEs {
    ...
   maven { url ‘https://jitpack.io‘ }
  }
}

app目录下bulID.gradle中

compile ‘com.github.aohanyao:BouncingJelly:1.0.4‘


布局

 

<?xml version="1.0" enCoding="utf-8"?><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"    app:layout_behavior="@string/appbar_scrolling_vIEw_behavior"    >    <!--这里面放阻尼效果的布局-->    <linearLayout        androID:layout_wIDth="match_parent"        androID:layout_height="match_parent"        androID:orIEntation="vertical">        <ListVIEw            androID:ID="@+ID/ListvIEw"            androID:layout_wIDth="match_parent"            androID:layout_height="match_parent"            androID:overScrollMode="never" />    </linearLayout>    </com.aohanyao.jelly.library.BouncingJellyVIEw>

 

这样就可以了,很简单

 

 

代码:https://github.com/aohanyao/BouncingJelly/tree/master

总结

以上是内存溢出为你收集整理的Android -------- BouncingJellyView 果冻视图(阻尼效果)全部内容,希望文章能够帮你解决Android -------- BouncingJellyView 果冻视图(阻尼效果)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1121554.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存