Selection list cut off in AutoCompleteTextView in Dialog

后端 未结 6 928
名媛妹妹
名媛妹妹 2021-02-06 09:55

I have a dialog window that covers 1/3 of the entire screen height and is displayed on top of my activity. The dialog holds two AutoCompleteTextView fields.

The problem

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 10:44

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

    I ended up overriding my SimpleCursorAdapter.newView() method, walking up the ViewParent hierarchy until I reached the root View, and then modifying its WindowManager.LayoutParams by ORing in the FLAG_LAYOUT_NO_LIMITS flag.

    This needs to be redone every time the drop down is displayed.

提交回复
热议问题