public void setDropDownBackgroundResource(int id) {
mPopup.setBackgroundDrawable(getResources().getDrawable(id));
}
/**
* Sets the vertical offset used for the auto-complete drop-down list.
*
* @param offset the vertical offset
*/
public void setDropDownVerticalOffset(int offset) {
mDropDownVerticalOffset = offset;
}
/**
* Gets the vertical offset used for the auto-complete drop-down list.
*
* @return the vertical offset
*/
public int getDropDownVerticalOffset() {
return mDropDownVerticalOffset;
}
/**
* Sets the horizontal offset used for the auto-complete drop-down list.
*
* @param offset the horizontal offset
*/
public void setDropDownHorizontalOffset(int offset) {
mDropDownHorizontalOffset = offset;
}
/**
* Gets the horizontal offset used for the auto-complete drop-down list.
*
* @return the horizontal offset
*/
public int getDropDownHorizontalOffset() {
return mDropDownHorizontalOffset;
}
|||||||
=======
/**
* Gets the background of the auto-complete drop-down list.
*
* @return the background drawable
*
* @attr ref android.R.styleable#PopupWindow_popupBackground
*
* @hide Pending API council approval
*/
public Drawable getDropDownBackground() {
return mPopup.getBackground();
}
/**
* Sets the background of the auto-complete drop-down list.
*
* @param d the drawable to set as the background
*
* @attr ref android.R.styleable#PopupWindow_popupBackground
*
* @hide Pending API council approval
*/
public void setDropDownBackgroundDrawable(Drawable d) {
mPopup.setBackgroundDrawable(d);
}
/**
* Sets the background of the auto-complete drop-down list.
*
* @param id the id of the drawable to set as the background
*
* @attr ref android.R.styleable#PopupWindow_popupBackground
*
* @hide Pending API council approval
*/
public void setDropDownBackgroundResource(int id) {
mPopup.setBackgroundDrawable(getResources().getDrawable(id));
}
/**
* Sets the animation style of the auto-complete drop-down list.
*
* If the drop-down is showing, calling this method will take effect only
* the next time the drop-down is shown.
*
* @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
*/
public void setDropDownAnimationStyle(int animationStyle) {
mPopup.setAnimationStyle(animationStyle);
}
>>>>>>> f3ccf8a5a5a3f6e46781538358bddca992a70e3d:core/java/android/widget/AutoCompleteTextView.java
/**
* Returns the animation style that is used when the drop-down list appears and disappears
*