From e1ae350cb9d2e050bb7e9fa39291010c42a2a4c8 Mon Sep 17 00:00:00 2001 From: Jeffrey Sharkey <> Date: Tue, 31 Mar 2009 18:24:45 -0700 Subject: [PATCH] AI 143907: Make search widget drop-down wider. BUG=1749373 Automated import of CL 143907 --- .../android/widget/AutoCompleteTextView.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index e61354105e8e5..dfb971e7aa595 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -808,6 +808,22 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe return result; } + /** + * Set the horizontal offset with respect to {@link #setDropDownAnchor(int)} + * @hide pending API council review + */ + public void setDropDownHorizontalOffset(int horizontalOffset) { + mDropDownHorizontalOffset = horizontalOffset; + } + + /** + * Set the vertical offset with respect to {@link #setDropDownAnchor(int)} + * @hide pending API council review + */ + public void setDropDownVerticalOffset(int verticalOffset) { + mDropDownVerticalOffset = verticalOffset; + } + /** *

Used for lazy instantiation of the anchor view from the id we have. If the value of * the id is NO_ID or we can't find a view for the given id, we return this TextView as