Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.06 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.06 KB

AnimatedExpandableEditText

A simple cool animated edit text with a expandable animation for Android

Animated Expandable Edit Text Animation

Installation:

  1. Add it in your root build.gradle at the end of repositories:
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
  1. Add the dependency
dependencies {
  compile 'com.github.OpenCraft:AnimatedExpandableEditText:-SNAPSHOT'
}

Usage:

Start using the expandable edit text adding the component below inside your layout file:

<com.gcherubini.animatedexpandableedittext.AnimatedExpandableEditText
  android:layout_width="match_parent"
  android:layout_height="wrap_content" />

Customizing:

Create your own res/values/dimens.xml and res/values/integers.xml files in order to override default behavioural configurations:

<dimen name="animated_expandable_edit_text_expanded_height">35dp</dimen>
<integer name="animated_expanded_edit_text_animation_duration_milliseconds">400</integer>