Giter Site home page Giter Site logo

anu-prakash-dev / fillblankview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from woxingxiao/fillblankview

0.0 1.0 0.0 237 KB

基于EditText,仿手机支付宝、微信支付时数字密码输入验证的控件,同时支持文字输入验证

Java 100.00%

fillblankview's Introduction

###仿手机支付宝支付数字密码输入验证,文字信息输入验证

###Gradle

dependencies{
    compile 'com.xw.repo:fillblankview:1.0@aar'
}

###Screenshot

password inputs

demo2

text inputs

demo3

###XML

<com.xw.repo.fillblankview.FillBlankView
    android:id="@+id/fill_blank_view4"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:layout_marginTop="10dp"
    android:background="@color/red_light"
    android:padding="5dp"
    app:blankCornerRadius="4dp"
    app:blankSolidColor="@color/yellow"
    app:blankSpace="10dp"
    app:blankStrokeColor="@color/green"
    app:blankStrokeWidth="1dp"
    app:dotColor="@color/green"
    app:dotSize="5dp"
    app:hideText="true"/>
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    android:text="match: Hello, world"/>

<com.xw.repo.fillblankview.FillBlankView
    android:id="@+id/fill_blank_view2"
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:padding="5dp"
    android:textSize="16sp"
    app:blankCornerRadius="4dp"
    app:blankSpace="5dp"/>

###Attributes

attr format
blankNum integer
blankSpace dimension
blankSolidColor color
blankStrokeColor color
blankStrokeWidth dimension
blankCornerRadius dimension
hideText boolean
dotSize dimension
dotColor color
textMatchedColor color
textNotMatchedColor color

###License

The MIT License (MIT)

Copyright (c) 2016 woxingxiao

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.

fillblankview's People

Contributors

woxingxiao avatar

Watchers

Anu Prakash avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.