All Projects → MindorksOpenSource → Editdrawabletext

MindorksOpenSource / Editdrawabletext

Licence: apache-2.0
EditDrawableText - An EditText which makes your Drawable Clickable

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Editdrawabletext

QuestionnaireView
A simple view to be able to display question and various field (Radio, EditText, checkbox ) for answers
Stars: ✭ 34 (-88.19%)
Mutual labels:  android-development, edittext
Spedittool
An efficient and scalable library for inputing and displaying gif or @mention on graph-text mixed TextView/EditText
Stars: ✭ 292 (+1.39%)
Mutual labels:  edittext, drawable
MTextField
A new Material Design text field that comes in a box, based on [Google Material Design guidelines]
Stars: ✭ 32 (-88.89%)
Mutual labels:  android-development, edittext
Android Complexify
An Android library which makes checking the quality of user's password a breeze.
Stars: ✭ 111 (-61.46%)
Mutual labels:  android-development, edittext
svg2vector
Online batch converter of SVG images to Android vector drawable XML resource files
Stars: ✭ 39 (-86.46%)
Mutual labels:  android-development, drawable
workmanager
Scheduling background tasks without worrying about device compatibility using android WorkManager
Stars: ✭ 19 (-93.4%)
Mutual labels:  android-development
currency edittext
Simple currency formatter for Android EditText
Stars: ✭ 64 (-77.78%)
Mutual labels:  edittext
FancyTab
No description or website provided.
Stars: ✭ 15 (-94.79%)
Mutual labels:  android-development
android-jetpack
🚀 Road to Accelerate Android Development using Jetpack
Stars: ✭ 50 (-82.64%)
Mutual labels:  android-development
Bankcardformat
💳 自动格式化银行卡号的EditText,卡号格式化、归属银行及卡别判断
Stars: ✭ 273 (-5.21%)
Mutual labels:  edittext
Android Pagination With Recyclerview
Pagination (Endless or Infinite Scrolling) using RecyclerView's onScrollListener
Stars: ✭ 269 (-6.6%)
Mutual labels:  android-development
MessageView
MessageView helps you to create chat message view or a social media message view quickly like a typical chatting application or social post view Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.
Stars: ✭ 21 (-92.71%)
Mutual labels:  android-development
Text-Length-Bar
No description or website provided.
Stars: ✭ 31 (-89.24%)
Mutual labels:  edittext
Tableview
TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
Stars: ✭ 2,928 (+916.67%)
Mutual labels:  android-development
CustomEditText
Simple Custom EditText for Android like Instagram
Stars: ✭ 23 (-92.01%)
Mutual labels:  edittext
Slidingrootnav
DrawerLayout-like ViewGroup, where a "drawer" is hidden under the content view, which can be shifted to make the drawer visible.
Stars: ✭ 2,939 (+920.49%)
Mutual labels:  android-development
TakingImageOfAView
An example on how to take screenshot of a particular view
Stars: ✭ 15 (-94.79%)
Mutual labels:  drawable
Best-Coding-practices-in-android
This repo is to add best practices that developers can apply to write clean, short and testable code in android.
Stars: ✭ 86 (-70.14%)
Mutual labels:  android-development
Android Camera Example
A sample android camera example
Stars: ✭ 261 (-9.37%)
Mutual labels:  android-development
bigbang-template
Android template used by Xmartlabs team
Stars: ✭ 14 (-95.14%)
Mutual labels:  android-development

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.

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