<com.google.android.material.textfield.TextInputLayout style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="4dp" android:hint="@string/cat_textfield_label" app:errorEnabled="true" app:helperText="@string/cat_textfield_outlined_exposed_dropdown_helper_text" app:helperTextEnabled="true"> <AutoCompleteTextView android:id="@+id/outlined_exposed_dropdown" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="none"/> </com.google.android.material.textfield.TextInputLayout>
Use this with ViewPager + Fragment, scroll and init is very lag
I found out is happen when use the style @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu
<com.google.android.material.textfield.TextInputLayout style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="4dp" android:hint="@string/cat_textfield_label" app:errorEnabled="true" app:helperText="@string/cat_textfield_outlined_exposed_dropdown_helper_text" app:helperTextEnabled="true"> <AutoCompleteTextView android:id="@+id/outlined_exposed_dropdown" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="none"/> </com.google.android.material.textfield.TextInputLayout>
Use this with ViewPager + Fragment, scroll and init is very lag I found out is happen when use the style @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu