AnimatedEditText


Source link: https://github.com/alphamu/AnimatedEditText

AnimatedEditText for Android

This repository contains AnimatedEditText and TextDrawable all of which extend the behaviour of EditText and implement features that are otherwise not available.

NOTE: PinEntryEditText has been moved to it's own repo on GitHub.

Features

AnimatedEditText

  • Text animates in as typed (4 animations available).
  • Text animates out when cleared using setText(null) or setText("").
  • Smooth forward movement of cursor (API 16+).
  • Smooth backward movement of cursor when clear is called (API 16+, see known issues).
  • Lets you specify any character to be used as a mask for input.

PinEntryEditText

PinEntryEditText has been moved to it's own repo on GitHub.

Others

  • TextDrawable which allows you to set and use text as a drawable.

Usage

Below is a fast guide to getting started. However, if you need to read about these widgets in details. Read more about AnimatedEditText, PinEntryEditText, TextDrawable.

STEP-1

Gradle

dependencies {

  compile 'com.alimuzaffar.lib:animated-edit-text:1.1' 
}
 

STEP-2

Setup AnimatedTextView and PinEntryView in your layout

<com.alimuzaffar.lib.widgets.AnimatedEditText
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:hint="Animate pop in"
  android:inputType="textNoSuggestions" //recommended when typing text to avoid autocomplete.
  app:animationType="popIn|fromBottom|fromRight|fromMiddle|none" //Optional, default popIn
  app:animateCursor="true|false" //Optional, default true
  app:animateTextClear="true|false" /> //Optional, default true

Use in your code

Use in your code like you would use a regular EditText

EditText regular = (AnimatedEditText) findViewById(R.id.txt_regular);
 if (regular != null) {

  String input = regular.getText().toString();
 
}

Effects :

  1. PopIn (default)
  2. Bottom Up
  3. In from right
  4. In from middle

Demo

Pop-in animation

Bottom Up Animations

In from right

In from middle

You can see a YouTube video of all the animations here: YouTube video

Issues :

  • Only works for single line input, the second the line has to wrap, the animation breaks.
  • Animation will work best if android:inputType="textNoSuggestions" is set.
  • Animations are only triggered when adding to the end of the string.
  • Only android:gravity="left|right|center_horizontal" is supported.
  • Smooth back movement of cursor when text is cleared doesn't work too well for android:gravity="center_horizontal"
  • No RTL language support.
  • Animate in from middle doesn't work properly except from android:gravity="left"
  • Not all features of EditText will work
  • Using some Unicode characters as masks causes the cursor to lose position. If this happens, I recommend setting cursor visibility to false or setting textPassword or numberPassword as the input type for the fields which improves the situation but doesn't really solve it in all cases.

License

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. 

Resources

An Android library project providing Activity with explanation about views in your app.

The TutorialActivitycan be used as a walk through for the entire screen that is currently visible, Or just for one view on the screen.

To get the intent to start the TutorialActivity you need to use the TutorialIntentBuilder, The builder will help you build the intent to start the activity, You would have to pass a Tutorial object to the intent builder.

pns

Distributed Push Notification Service for GCM and APNS. Built on REST API.

This is a fork of Google's chips library.

Plaxien is a small library we use at EverythingMe, that allows us to create "Explains" - easy to read representations of in-app data and logic.

Basically it can represent hierarchical data composed of "nodes" and "key/value" pairs in a nice collapsible tree view. It looks something like this:

Simple and easy dialog for Android. Instead of using dialog/fragments, normal view will be shown as dialog. It's customizable component and have 3 different content holder.

This is a very simple library for Android that allows you to stick an header to a ListView and easily apply animation to it.

The StikkyHeader supports:

  • ListView
  • RecyclerView
  • ScrollView

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes