TextInputLayout not showing when View added programmatically
I noticed some strange behaviour of TextInputLayout : When I add the following to my layout: <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/txtFirstName" style="@style/EditTextStyle" android:layout_width="match_parent" android:layout_height="match_parent" android:hint="In layout" android:singleLine="true" /> </android.support.design.widget.TextInputLayout> everything works as expected. When I inflate a similar Layout like: View v = LayoutInflater.from(this).inflate(R.layout.edittext_w