Material design Spinner using TextInputLayout.OutlinedBox styling

I am assuming you want to have an Exposed drop-down menu inside the TextInputLayout I had the same problem, what you can do is use AutoCompleteTextView inside your TextInputLayout as in the following in the XML. here’s an example of how I approached the issue. <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”horizontal” android:paddingRight=”30dp” android:paddingEnd=”30dp” tools:ignore=”RtlSymmetry” android:layout_margin=”5dp”> <ImageView android:layout_width=”30dp” … Read more

Change font of the floating label EditText and TextInputLayout

As of Design Library v23, you can use TextInputLayout#setTypeface(). This will set the typeface on both the expanded and floating hint. Here is the feature request where it was discussed on b.android.com. EDIT: The error view typeface was not being set, but is now fixed in v25.1.0.

Different label and hint for TextInputLayout

I took a similar approach to Rehan <android.support.design.widget.TextInputEditText android:id=”@+id/edit_text” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> editText.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { inputLayout.setHint(“We did it!”); } else { inputLayout.setHint(“Testing 123”); } } }); The animation was good enough for me without disabling the animation:

How to disable padding on TextInputLayout?

You can just set the start and end padding on the inner EditText to 0dp. <com.google.android.material.textfield.TextInputLayout android:layout_width=”match_parent” android:layout_height=”wrap_content”> <com.google.android.material.textfield.TextInputEditText android:layout_width=”match_parent” android:layout_height=”wrap_content” android:paddingStart=”0dp” android:paddingEnd=”0dp” /> </com.google.android.material.textfield.TextInputLayout> Here’s a screenshot with Show Layout Bounds turned on so you can see that the hints go all the way to the edge of the view.