wuyr / Arrowdrawable
Licence: apache-2.0
纯Paint实现的一个射箭效果,可用作Loading动画。
Stars: ✭ 103
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Arrowdrawable
KJNetworkPlugin
🎡A lightweight but powerful Network library. Network Plugin, Support batch and chain operation. 插件版网络架构
Stars: ✭ 43 (-58.25%)
Mutual labels: loading, refresh
Artifacts Kit
Pseudo-malicious usermode memory artifact generator kit designed to easily mimic the footprints left by real malware on an infected Windows OS.
Stars: ✭ 99 (-3.88%)
Mutual labels: header
Iprogresshud
An elegant, lightweight and responsive progress HUD for iOS app with very simple usage. Available 32 indicators by NVActivityIndicatorView.
Stars: ✭ 66 (-35.92%)
Mutual labels: loading
Inifiniterecyclerview
Library for implementing endless loading list easily in Android applications
Stars: ✭ 79 (-23.3%)
Mutual labels: loading
Collapsingrefresh
AppBarLayout+ViewPager+RecyclerView的刷新功能
Stars: ✭ 69 (-33.01%)
Mutual labels: refresh
Transitionbutton
UIButton sublass for loading and transition animation.
Stars: ✭ 1,124 (+991.26%)
Mutual labels: loading
React Native Loading Spinner Overlay
💈 React Native loading spinner overlay
Stars: ✭ 1,369 (+1229.13%)
Mutual labels: loading
Terminal layout
The project help you to quickly build layouts in terminal,cross-platform(一个跨平台的命令行ui布局工具)
Stars: ✭ 98 (-4.85%)
Mutual labels: loading
Svg Loaders React
React adaptation of the SVG Loaders library by Sam Herbert
Stars: ✭ 75 (-27.18%)
Mutual labels: loading
Floatthead
Fixed <thead>. Doesn't need any custom css/html. Does what position:sticky can't
Stars: ✭ 1,193 (+1058.25%)
Mutual labels: header
Smoothrefreshlayout
一款支持上下拉刷新、越界回弹、二级刷新、横向刷新、拉伸回弹、平滑滚动、嵌套滚动的多功能刷新控件
Stars: ✭ 1,166 (+1032.04%)
Mutual labels: refresh
Glastoselenium
A bot for booking Glastonbury tickets using selenium
Stars: ✭ 89 (-13.59%)
Mutual labels: refresh
Genesis Header Nav
WordPress plugin that registers a menu location and displays it inside the header for a Genesis Framework child theme.
Stars: ✭ 67 (-34.95%)
Mutual labels: header
Placeholder Loading
Simple and flexible, css only, content placeholder loading animation. https://zalog.github.io/placeholder-loading/
Stars: ✭ 1,137 (+1003.88%)
Mutual labels: loading
Flutter shimmer
A package provides an easy way to add shimmer effect in Flutter project
Stars: ✭ 1,188 (+1053.4%)
Mutual labels: loading
Rximagepicker
Android图片相册预览选择器、支持AndroidX,支持图片的单选、多选、图片预览、图片文件夹切换、在选择图片时调用相机拍照
Stars: ✭ 85 (-17.48%)
Mutual labels: loading
React Native Rk Pull To Refresh
a pull to refresh component for react-native, same api on both android and ios
Stars: ✭ 100 (-2.91%)
Mutual labels: refresh
ArrowDrawable,纯Paint实现的一个射箭效果,可用作Loading动画。
https://blog.csdn.net/u011387817/article/details/94607919
博客详情:使用方式:
添加依赖:
● 单独使用Drawable
implementation 'com.wuyr:arrowdrawable:1.0.1'
SmartRefreshLayout使用)
● 作为刷新Header (需配合implementation 'com.wuyr:arrowheader:1.0.3'
APIs:
ArrowDrawable
Method | Description |
---|---|
create(View targetView) | 创建对象 targetView: 显示此Drawable的容器,下同 |
create(View targetView, int width, int height) | 指定Drawable的宽高来创建对象 |
create(View targetView, int width, int height, int bowLength) | 指定Drawable的宽高、弓的长度来创建对象 |
reset() | 重置ArrowDrawable为静止状态 |
hit() | 开始播放命中动画 |
miss() | 开始播放未命中动画 |
fire() | 播放发射动画 |
ArrowDrawable & ArrowHeader
Method | Description |
---|---|
updateSize(int width, int height, int bowLength) | 更新ArrowDrawable的尺寸 |
setBaseLinesFallDuration(int duration) | 设置线条的坠落时长 |
setFiringBowFallDuration(int duration) | 设置发射中的弓向下移动的时长 |
setFiredArrowShrinkDuration(int duration) | 设置发射后的箭收缩动画时长 |
setFiredArrowMoveDuration(int duration) | 设置发射后的箭每次上下移动的时长 |
setSkewTan(float tan) | 设置命中后左右摆动的幅度(正切值) |
setMaxSkewCount(int count) | 设置命中后一共要摆动的次数 |
setMissDuration(int duration) | 设置未命中动画时长 |
setHitDuration(int duration) | 设置命中动画时长 |
setSkewDuration(int duration) | 设置命中后每次左右摆动的时间 |
setLineColor(int color) | 设置坠落的线条颜色 |
setBowColor(int color) | 设置弓颜色 |
setStringColor(int color) | 设置弦颜色 |
setArrowColor(int color) | 设置箭颜色 |
Attributes:
ArrowHeader
Name | Format | Description |
---|---|---|
bowColor | color (默认: 白色) | 弓颜色 |
arrowColor | color (默认: 白色) | 箭颜色 |
stringColor | color (默认: 白色) | 弦颜色 |
lineColor | color (默认: 白色) | 坠落的线条颜色 |
bowLength | dimension (默认: 总宽度的30%) | 弓长 |
app-debug.apk
Demo下载:库源码地址:
https://github.com/Ifxcyr/ArrowDrawable
● ArrowDrawable:https://github.com/Ifxcyr/ArrowHeader
● ArrowHeader:效果图:
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].