Rectangle 27 1

android Selection list cut off in AutoCompleteTextView in Dialog?


I have successfully achieved this, but it isn't pretty.

Note
Rectangle 27 1

android Selection list cut off in AutoCompleteTextView in Dialog?


It made my little dialog like a full screen dialog, but actualy that "tail" wasn't showed, and my DropDown wasn't cutted at all, cause it had enough place to show list items from DropDown.

Not long ago i faced this problem. I had small dialog with AutoCompleteTextView, which had more than 10 items in Drop Down list. This list was cutted. My solution was: Place some empty View in my Dialog layout file with parameters

Note
Rectangle 27 1

android Selection list cut off in AutoCompleteTextView in Dialog?


This problem only happens when using AutoCompleteTextView inside a Dialog

This issue is present all the way from Gingerbread to Jelly Bean.

You can use the property android:dropDownHeight of the AutoCompleteTextView to force it to be of a certain height. This is not really solving the problem, but is the best I could find.

Note
Rectangle 27 1

android Selection list cut off in AutoCompleteTextView in Dialog?


I tried so set that attribute for the very outer LinearLayout of my dialog layout, and also for all others of which the AutoCompleteTextView is a (sub)child of. But it doesn't help. Since it's a dialog, it should be more of like window.setClipChildren(false), but unfortunately such a method doesn't exist for window. Or some flags like window.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); but that all doesn't help.

Just a shot in the dark, but have you tried setting android:clipChildren to false on the view for the dialog atop your Activity?

Note
Rectangle 27 1

android Selection list cut off in AutoCompleteTextView in Dialog?


But if anybody knows a solution to this, I'd greatly appreciate it and would be glad to trade it for some bounty points.

One workaround that came to my mind is now to extend the dialog to the very bottom of the screen but leave the background transparent, so it looks the same as now, but actually has a height that wouldn't cut off the list. I will give that a try...

Note