
回复
添加资源
添加资源将有机会获得更多曝光,你也可以直接关联已上传资源
去关联
该三方开源库从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"/>
Copyright (C) 2016 xhb_199409@163.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.