Android: Set AutoCompleteTextView popup background corner radius

 This is a most cumbersome problem. If MaterialAutoCompleteTextView, or AutoCompleteTextView is used, it is hard to style it with theme attributes, because corner radius is hard coded https://github.com/material-components/material-components-android/blob/784f901135c654e938a4b0a71252b6887a276244/lib/java/com/google/android/material/textfield/DropdownMenuEndIconDelegate.java#L212.

It seems the only solution that is working is setting it manually.

According to material specs, the corner radius of AutoCompleteTextView popup should be set to 4dp. https://material.io/components/menus#exposed-dropdown-menu


Comments

Popular posts from this blog

Flutter - Create Image Container with Round Corners and Splash Effect

AVR Analog Comparator

JAudioTagger - ID3 tagger library