GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Freshman111/VerificationCodeView: VerificationCode View

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
art
art
 
 
gradle/wrapper
gradle/wrapper
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

VerificationCodeView

VerificationCode View

可用于动态生成验证码,常见于金融类app

App Preview

jpgjpg

代码原理以及说明请看这一篇博客: Android实现动态验证码的技术调研与实现

建议将宽高比设置为5:2,如果不是5:2现在会按照5:2的比例居中显示到控件

usage

<sgffsg.com.verifycodeview.VerificationCodeView
    android:id="@+id/verifycodeview"
    android:layout_alignParentRight="true"
    android:layout_width="100dp"
    android:layout_height="40dp" />

verificationCodeView.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
        edit_input.setText("");
        verificationCodeView.refreshCode();
    }
});

####请求网络验证码时

<sgffsg.com.verifycodeview.VerificationCodeView
    android:id="@+id/net_verifycodeview"
    android:layout_width="100dp"
    android:layout_height="40dp"
    android:visibility="gone"
    app:isNetCode="true"/>

Thanks

CaptchaImageView

##License MIT

About

VerificationCode View

Resources

Readme
MIT license
Activity

Stars

385 stars

Watchers

8 watching

Forks

51 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.