All Projects → keijumt → password-view

keijumt / password-view

Licence: other
Android password animation

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to password-view

Android Youtube Player
YouTube Player library for Android and Chromecast, stable and customizable.
Stars: ✭ 2,510 (+5737.21%)
Mutual labels:  custom-view
IconDotTextView
Convenient to add a View which contains icon, text and red dot.
Stars: ✭ 22 (-48.84%)
Mutual labels:  custom-view
WechatPopupWindow
高仿微信聊天界面长按弹框样式
Stars: ✭ 71 (+65.12%)
Mutual labels:  custom-view
Parallaxrecyclerview
Parallax effect on every item of your RecyclerView.
Stars: ✭ 237 (+451.16%)
Mutual labels:  custom-view
PercentBarView
PercentBar
Stars: ✭ 26 (-39.53%)
Mutual labels:  custom-view
CustomView
custom view
Stars: ✭ 13 (-69.77%)
Mutual labels:  custom-view
Circularprogressbar
CircularProgressbar project let you create circular progressbar in android
Stars: ✭ 188 (+337.21%)
Mutual labels:  custom-view
easyCountDownTimer
A simple android library to countdown timer textview for api 14+
Stars: ✭ 61 (+41.86%)
Mutual labels:  custom-view
RatioLayouts
A collection of ViewGroups which can have a constant width to height ratio.
Stars: ✭ 19 (-55.81%)
Mutual labels:  custom-view
ProgressableImageView
Change your users progress capability with ProgressableImageView
Stars: ✭ 86 (+100%)
Mutual labels:  custom-view
Apporder
骚操作之改造TabLayout,修改指示线宽增加切Tab过渡动画
Stars: ✭ 246 (+472.09%)
Mutual labels:  custom-view
Bezierseekbar
Beautiful custom View, SeekBar selector, easy to use, and rich in customization.漂亮的区间选择器,贝塞尔曲线优雅实现
Stars: ✭ 252 (+486.05%)
Mutual labels:  custom-view
XCPullToLoadMoreListView
XCPullToLoadMoreListView-下拉加载更多ListView控件(仿QQ、微信聊天对话列表控件)
Stars: ✭ 24 (-44.19%)
Mutual labels:  custom-view
Jpagerslidingtabstrip
🔥A useful tablayout modify from astuetz/PagerSlidingTabStrip
Stars: ✭ 233 (+441.86%)
Mutual labels:  custom-view
XCArcProgressView
Android开口圆环比例进度View(高仿猎豹清理大师内存占用比例View)
Stars: ✭ 28 (-34.88%)
Mutual labels:  custom-view
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+4981.4%)
Mutual labels:  custom-view
ScaleView
ArcScaleView,ScaleView,刻度尺选择器,包括弧形刻度尺选择器和直尺形刻度尺选择器
Stars: ✭ 53 (+23.26%)
Mutual labels:  custom-view
Android-Code-Demos
📦 Android learning code demos.
Stars: ✭ 41 (-4.65%)
Mutual labels:  custom-view
Circular-Progress-View
A customisable circular progress view for android.
Stars: ✭ 39 (-9.3%)
Mutual labels:  custom-view
android-thinkmap-treeview
Tree View; Mind map; Think map; tree map; custom view; 自定义;关系图;树状图;思维导图;组织机构图;层次图
Stars: ✭ 314 (+630.23%)
Mutual labels:  custom-view

password-view

Android password animation

Sample

Useage

implementation 'com.keijumt.passwordview:passwordview:1.0.0'

Layout.xml

<com.keijumt.passwordview.PasswordView
    android:id="@+id/passwordView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:password_count="4" />

Input and Remove password

// append the value of input and run input animation when text is input
passwordView.appendInputText(password)

// remove last characters from input values and run animation when text is removed
passwordView.removeInputText()

Correct And Incorrect Animation

// Run animation when the password is correct
passwordView.correctAnimation()

// Run animation when the password is incorrect
passwordView.incorrectAnimation()

Listener

passwordView.setListener(object : ActionListener {
    override fun onCompleteInput(inputText: String) {
        // When text input is completed
    }

    override fun onEndJudgeAnimation() {
        // When animation is completed when the password is correct or when it is incorrect
    }
})

Attribute

app:password_count - The circle count

app:password_radius - The circle radius

app:password_between_margin - The margin between circles

app:password_input_color - The color of the circle when the value is input

app:password_not_input_color - The color of the circle when the value is not input

app:password_outline_color - The color of the line around the circle

app:password_outline_stroke_width - The stroke width of the line around the circle

app:password_correct_color - The color of the circle when the password is correct

app:password_incorrect_color - The color of the circle when the password is incorrect

app:password_correct_duration - The animation time when the password is correct

app:password_incorrect_duration - The animation time when the password is incorrect

app:password_color_change_duration - The animation time when circle color changes

app:password_input_and_remove_duration - The animation time when password is input or remove

app:password_correct_top - In animation when the password is correct, the y coordinate of the highest circle

app:password_correct_bottom - In animation when the password is correct, the y coordinate of the lowest circle

app:password_incorrect_max_width - In animation when the password is incorrect, the swing width of the circle

License

Copyright 2019 Keiju Matsumoto

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.
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].