# PasswordLoadingView **Repository Path**: hihopeorg/PasswordLoadingView ## Basic Information - **Project Name**: PasswordLoadingView - **Description**: 当完成密码输入时提供一个动画 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-02 - **Last Updated**: 2021-11-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PasswordLoadingView **本项目是基于开源项目PasswordLoadingView进行ohos化的移植和开发的,可以通过项目标签以及github地址(https://github.com/Rogero0o/PasswordLoadingView )追踪到原项目版本** #### 项目介绍 - 项目名称:PasswordLoadingView - 所属系列:ohos的第三方组件适配移植 - 功能: 当完成密码输入时提供一个动画 - 项目移植状态:完成 - 调用差异:无 - 项目作者和维护人:hihope - 联系方式:hihope@hoperun.com - 原项目Doc地址:https://github.com/Rogero0o/PasswordLoadingView - 原项目基线版本:1.0.1 - 编程语言:Java #### 效果展示 ![avatar](screenshot/效果展示.gif) #### 安装教程 方法1. 1. 编译三方依赖包psdloadingview。 2. 启动 DevEco Studio,将编译的har包,导入工程目录“entry->libs”下。 3. 在moudle级别下的build.gradle文件中添加依赖,在dependences标签中增加对libs目录下har包的引用。 ``` dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) } ``` 4. 在导入的har包上点击右键,选择“Add as Library”对包进行引用,选择需要引用的模块,并点击“OK”即引用成功。 方法2. 1. 在工程的build.gradle的allprojects中,添加HAR所在的Maven仓地址 ``` repositories { maven { url 'http://106.15.92.248:8081/repository/Releases/' } } ``` 2. 在应用模块的build.gradle的dependencies闭包中,添加如下代码: ``` dependencies { implementation 'com.roger.psdloadingview.ohos:psdloadingview:1.0.0' } ``` #### 使用说明 1. ##### 在xml中配置 ``` ``` 2. ##### 在java代码中初始化 ``` PsdLoadingView mPsd = (PsdLoadingView) findComponentById(ResourceTable.Id_psdloadingview); IAnimate iAnimate = new TranslationX2Animate(); mPsd.init(iAnimate); mPsd.startLoading(); ``` #### 版本迭代 - v1.0.0 - 当完成密码输入时提供一个动画,目前支持以下动画: 1. TranslationX动画 2. TranslationX2动画 3. EatAnimate动画 #### 版权和许可信息 ``` The MIT License (MIT) Copyright © 2015 Roger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```