
回复
该三方开源库从github fork过来
fork地址:https://github.com/xiaohaibin/CustomWaterView.git
fork版本号/日期:0.9.9 / 2021/3/12
自定义仿支付宝蚂蚁森林水滴控件
功能说明
自定义仿支付宝蚂蚁森林水滴控件,实现水滴飘浮状态,点击水滴边降落边消失,重置水滴
效果展示
依赖
方式一:
添加har包到lib文件夹内 在entry的gradle内添加如下代码 implementation fileTree(dir: 'libs', include: ['.jar', '.har'])
方式二:
allprojects { repositories{ mavenCentral() } } implementation 'io.openharmony.tpc.thirdlib:CustomWaterView:1.0.0'
使用
直接在xml下配置
<com.stx.xhb.customwaterview.WaterFlake ohos:id="$+id:custom_view" ohos:width="match_parent" ohos:height="match_parent"/>