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 - MindorksOpenSource/EditDrawableText: EditDrawableText - An EditText which makes your Drawable Clickable

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
editdrawabletext
editdrawabletext
 
 
gradle/wrapper
gradle/wrapper
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
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

EditDrawableText

EditDrawableText - An EditText which makes your Drawable Clickable

Mindorks Mindorks Community Mindorks Android Store License

Preview of EditDrawableText

   

Overview of EditDrawableText library

  • EditDrawableText can be used to Show/Hide Password
  • Left/Right Drawables can be clicked to make custom events like Request OTP etc.
  • All type of EditText Properties are possible in EditDrawableText

Using EditDrawableText Library in your Android application

  1. Add it in your root build.gradle at the end of repositories:
    repositories {
      maven { url 'https://jitpack.io' }
    }
  1. Add this in your app's build.gradle
	 implementation 'com.github.MindorksOpenSource:EditDrawableText:2.0'
  1. To use this in XML File, use
  <com.mindorks.editdrawabletext.EditDrawableText
        android:id="@+id/drawableEditTextLeft"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:drawableLeft="@drawable/ic_remove_red_eye_black_24dp"
        android:hint="Click the Drawables"
        android:inputType="text"
        android:textAlignment="center"
        />
  1. Make the drawable clickable in Activity file,
  drawableEditText.setDrawableClickListener(object : OnDrawableClickListener {
            override fun onClick(target: DrawablePosition) {
                when (target) {
                    DrawablePosition.RIGHT -> //YOUR_LOGIC
                    DrawablePosition.LEFT -> //YOUR_LOGIC
                    DrawablePosition.TOP -> //YOUR_LOGIC
                    DrawablePosition.BOTTOM -> //YOUR_LOGIC
                }
            }      
    })
  1. You can also add an option so that the drawable is hidden by default and only shows when there is some text available in EditDrawableText
  <com.mindorks.editdrawabletext.EditDrawableText
           ....
           app:isDrawableShownWhenTextIsEmpty="false"
        />

or

  drawableEditText.hasDrawable(/**YOUR VALUE**/)

When the value is false, then the drawable is hidden by default and vice versa

If this library helps you in anyway, show your love ❤️ by putting a ⭐ on this project ✌️

Check out Mindorks awesome open source projects here

Contributor

Himanshu Singh

Pranay Patel

License

   Copyright (C) 2018 MINDORKS NEXTGEN PRIVATE LIMITED

   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.

Contributing to EditDrawableText

All pull requests are welcome, make sure to follow the contribution guidelines when you submit pull request.

About

EditDrawableText - An EditText which makes your Drawable Clickable

github.com/MindorksOpenSource/EditDrawableText

Topics

androidandroid-developmentandroid-librarydrawableedittextedittextviewkotlinkotlin-androidkotlin-languagekotlin-librarymindorks

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

299 stars

Watchers

12 watching

Forks

30 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — 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.