当前位置: 首页 > news >正文

AVLoadingIndicatorView - 一个很好的Android加载动画集合

官网

GitHub - HarlonWang/AVLoadingIndicatorView: DEPRECATED

项目简介

AVLoadingIndicatorView is a collection of nice loading animations for Android.

You can also find iOS version of this here.

Now AVLoadingIndicatorView was updated version to 2.X , If you have any question or suggestion with this library , welcome to tell me !

Usage

Step 1

Add dependencies in build.gradle.

    dependencies {compile 'com.wang.avi:library:2.1.3'}

Step 2

Add the AVLoadingIndicatorView to your layout:

Simple

    <com.wang.avi.AVLoadingIndicatorViewandroid:layout_width="wrap_content"  android:layout_height="wrap_content"app:indicatorName="BallPulseIndicator"/>

Advance

    <com.wang.avi.AVLoadingIndicatorViewandroid:id="@+id/avi"android:layout_width="wrap_content"  //or your custom sizeandroid:layout_height="wrap_content"  //or your custom sizestyle="@style/AVLoadingIndicatorView"// or AVLoadingIndicatorView.Large or AVLoadingIndicatorView.Smallandroid:visibility="visible"  //visible or goneapp:indicatorName="BallPulseIndicator"//Indicator Nameapp:indicatorColor="your color"/>

Step 3

It's very simple use just like .

   void startAnim(){avi.show();// or avi.smoothToShow();}void stopAnim(){avi.hide();// or avi.smoothToHide();}

效果图

http://www.lryc.cn/news/176601.html

相关文章:

  • 我想设计一套游戏的奖励系统,有什么值得注意的?
  • 精通git,没用过git cherry-pick?
  • QT5|C++|通过创建子线程方式实现进度条更新
  • 基于mediasoup的webrtc server,性能压测时发现带宽利用率偏低(40%)
  • Ubuntu Redis开机自启动服务
  • Stm32_标准库_呼吸灯_按键控制
  • MySQL作业:索引、视图、存储、函数
  • 漫谈:C语言 C++ 所有编程语言 =和==的麻烦
  • 十五、异常(1)
  • Redis 哨兵模式搭建教程
  • 【C++】gnustl_static 与 c++_shared 的区别
  • 怎样选择第三方检测机构获取功能测试报告?
  • 【@PostConstruct、 @Autowired与构造函数的执行顺序】
  • 用vite搭建vue3+ts项目
  • 前端求职指南
  • datax同步数据翻倍,.hive-staging 导致的问题分析
  • DataGrip 恢复数据
  • 【深度学习实验】前馈神经网络(一):使用PyTorch构建神经网络的基本步骤
  • 【Unity】LODGroup 计算公式
  • 【数学建模】2023华为杯研究生数学建模F题思路详解
  • docker 安装 nessus新版、awvs15-简单更快捷
  • 使用API Monitor工具巧妙探测C++程序中监听某端口的模块
  • vue-grid-layout移动卡片到页面底部时页面滚动条跟随滚动
  • git查看自己所在的分支
  • 竞赛 基于视觉的身份证识别系统
  • Redis的softMinEvictableIdleTimeMillis和minEvictableIdleTimeMillis参数
  • 向量数据库库Milvus Cloud2.3 的QA问题
  • 嵌入式 - 经典的有刷电机和先进的无刷电机
  • 【力扣2154】将找到的值乘以 2
  • C++ —— 单机软件加入Licence许可权限流程(附详细流程图、详细代码已持续更新..)