鸿蒙开源组件——自定义支付宝蚂蚁森林水滴控件

jacksky
发布于 2021-12-7 18:00
浏览
0收藏

该三方开源库从github fork过来

fork地址:https://github.com/xiaohaibin/CustomWaterView.git

fork版本号/日期:0.9.9 / 2021/3/12

CustomWaterView

自定义仿支付宝蚂蚁森林水滴控件

功能说明

自定义仿支付宝蚂蚁森林水滴控件,实现水滴飘浮状态,点击水滴边降落边消失,重置水滴

效果展示鸿蒙开源组件——自定义支付宝蚂蚁森林水滴控件-鸿蒙开发者社区

鸿蒙开源组件——自定义支付宝蚂蚁森林水滴控件-鸿蒙开发者社区

依赖

方式一:

添加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"/>

License

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.

CustomWaterView-master.zip 1.13M 8次下载
已于2021-12-7 18:00:31修改
收藏
回复
举报
回复
    相关推荐