Giter Club home page Giter Club logo

passwordedittext's Introduction

Build Quality Gate Status

PasswordEditText

Custom TextField to show/hide password with customizable icon.

Source

This library has been inspired by anshulagarwal06\PasswordEditText.

Integration

  1. For using PasswordEditText module in sample app, include the source code and add the below dependencies in entry/build.gradle to generate hap/support.har.
 implementation project(path: ':library')
  1. For using PasswordEditText module in separate application using har file, add the har file in the entry/libs folder and add the dependencies in entry/build.gradle file.
 implementation fileTree(dir: 'libs', include: ['*.har'])
  1. For using PasswordEditText module from a remote repository in separate application, add the below dependencies in entry/build.gradle file.
implementation 'dev.applibgroup:passwordedittext:1.0.0'

How to use

	    
  <in.anshul.library.PasswordEditText
            ohos:id="$+id:password_edit_text"
            ohos:height="match_content"
            ohos:width="match_parent"
            ohos:hide_drawable="$media:in_anshul_hide_password"
            ohos:hint="Password"
            ohos:horizontal_center="true"
            ohos:padding="10vp"
            ohos:password_visible="false"
            ohos:show_drawable="$media:in_anshul_show_password"
            ohos:text_size="18fp"/>
	    
	    

Instead of drawable you can also use Text

            

 <in.anshul.libray.PasswordEditText
            ...
            ohos:show_as_text="true"
            ohos:show_text="$string:show_text"
            ohos:hide_text="$string:hide_text"/>

Customise

  • ohos:show_drawable="$media:show_password"
  • ohos:hide_drawable="$media:hide_password"

Defualt Password Visiblity can be set using attr

  • ohos:password_visible="true"

That's it build your project.

passwordedittext's People

Contributors

applibengineering avatar gowthamrayar avatar

Stargazers

 avatar

Watchers

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