Changing TextInputLayout style does not work
Saidjamol opened this issue · comments
SJ commented
this is not working:
inputLayout.style(R.style.Widget_MaterialComponents_TextInputLayout_OutlinedBox)
xml:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/inputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/sample">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:textSize="14sp" />
</com.google.android.material.textfield.TextInputLayout>
Nathanael Silverman commented
@Saidjamol can you please explain what you are expecting and what is happening (or not) instead? Not all styleable attributes are supported by Paris (see the list here https://github.com/airbnb/paris/wiki/Supported-View-Types-and-Attributes) and so my guess is you're trying to apply unsupported attributes.