Skip to content

Instantly share code, notes, and snippets.

@ljubisa987
ljubisa987 / gist:e33cd5597da07172c55d
Last active Jul 26, 2021
TextInputLayout temporary workaround for hint not showing on initial load for SDK > 20
View gist:e33cd5597da07172c55d
import android.content.Context;
import android.graphics.Canvas;
import android.support.design.widget.TextInputLayout;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
public class CustomTextInputLayout extends TextInputLayout {