0

My AutoCompleteTextView drop down list does not always appear beneath the TextView. Sometimes , when there is a long list of results, it appears above the TextView. When that happens, the background that I set using setDropDownBackgroundResource is not applied. Does anyone know how to correct this behavior? I need for my background to apply at all time and to keep the list beneath the TextView at all time.

5
  • setDropDownBackgroundResource should always keep the background . Can you post your code
    – Libin
    Apr 10, 2014 at 19:17
  • @Libin My code is an EXACT copy of the sample at developer.android.com/reference/android/widget/… with the addition of textview.setDropDownBackgroundResource(R.drawable.my_img). Nothing more. Apr 10, 2014 at 19:37
  • It appears I am not the first to notice this issue: stackoverflow.com/questions/4183112/… Apr 10, 2014 at 19:43
  • I think , showing up/down depends on the space available and position of the AutoCompleteTextView
    – Libin
    Apr 10, 2014 at 19:56
  • 1
    the problem is that it starts in the up position and then as I type it flips. This is poor user experience. There should be a way to keep it in one location. I know my layout; I should be able to set a flag or such. Apr 10, 2014 at 20:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.