ExpandableHintText
A Customisable Pretty EditText Layout for Android
Install
Add Jitpack to your repositories in your build.gradle
file
allprojects {
repositories {
// ...
maven { url 'https://jitpack.io' }
}
}
Add the below to your dependencies, again in your gradle.build file
implementation 'com.github.thomhurst:ExpandableHintText:{version}'
On Click Animation
Typing
Sample Code
Light on Dark
<com.tomlonghurst.expandablehinttext.ExpandableHintText
android:layout_marginTop="32dp"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="Tom"
android:textColor="@color/colorPrimaryDark"
android:hint="First Name"
app:textBoxColor="@android:color/white"
app:floatingLabelColor="@android:color/white"
app:imageColor="@color/colorPrimary"
app:image="@drawable/ic_baseline_sentiment_very_satisfied_24px"
/>
Dark on Light
<com.tomlonghurst.expandablehinttext.ExpandableHintText
android:layout_marginTop="32dp"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="Tom"
android:textColor="@android:color/white"
android:hint="First Name"
app:textBoxColor="@color/colorPrimaryDark"
app:floatingLabelColor="@color/colorPrimaryDark"
app:imageColor="@color/white"
app:image="@drawable/ic_baseline_sentiment_very_satisfied_24px"
/>
If you enjoy, please buy me a coffee :)