Skip to content

Instantly share code, notes, and snippets.

View leonardo2204's full-sized avatar

Leonardo Ferrari leonardo2204

View GitHub Profile
@leonardo2204
leonardo2204 / TextInputLayoutClearable.java
Created February 3, 2016 17:52
TextInputLayoutClearable. When an error is shown, if user starts typing, the error is automatically cleared.
package com.lukaspili.mortardemo.ui.custom;
import android.content.Context;
import android.support.annotation.Nullable;
import android.support.design.widget.TextInputLayout;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
/**