1

When i use

 AutoCompleteTextView search_edit = (AutoCompleteTextView) v.findViewById(R.id.auto_search);
    search_edit.setDropDownAnimationStyle(R.style.MedicineListDropDown);

i get Cannot find method setDropDownAnimationStyle(int) but according to the android source code there is a public method

 public void setDropDownAnimationStyle(int animationStyle) {
    mPopup.setAnimationStyle(animationStyle);
}

so why am i getting error?

Shreyans jain
  • 559
  • 6
  • 18

1 Answers1

1

The method you are trying to use is marked as hidden (pending API council approval). That is why you can not use it.

 /**
 * <p>Sets the animation style of the auto-complete drop-down list.</p>
 *
 * <p>If the drop-down is showing, calling this method will take effect only
 * the next time the drop-down is shown.</p>
 *
 * @param animationStyle animation style to use when the drop-down appears
 *      and disappears.  Set to -1 for the default animation, 0 for no
 *      animation, or a resource identifier for an explicit animation.
 *
 * @hide Pending API council approval
 */
Community
  • 1
  • 1
Selçuk Cihan
  • 1,979
  • 2
  • 17
  • 30