material-components / material-components-web-catalog

Catalog of Material Components for the web (MDC Web)
https://material-components.github.io/material-components-web-catalog/
Apache License 2.0
116 stars 42 forks source link

Style ExposedDropdownMenu is bad performance of Smooth #289

Open voarlese opened 4 years ago

voarlese commented 4 years ago

<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

hashemitebarhossein963 commented 7 months ago

0919fb86f1b61727ebcc39ff6ea4203cbfce0381