/**@class android.widget.AutoCompleteTextView
 implements android.widget.Filter.FilterListener

@extends android.widget.EditText

 <p>An editable text view that shows completion suggestions automatically
 while the user is typing. The list of suggestions is displayed in a drop
 down menu from which the user can choose an item to replace the content
 of the edit box with.</p>

 <p>The drop down can be dismissed at any time by pressing the back key or,
 if no item is selected in the drop down, by pressing the enter/dpad center
 key.</p>

 <p>The list of suggestions is obtained from a data adapter and appears
 only after a given number of characters defined by
 {@link #getThreshold() the threshold}.</p>

 <p>The following code snippet shows how to create a text view which suggests
 various countries names while the user is typing:</p>

 <pre class="prettyprint">
 public class CountriesActivity extends Activity {
     protected void onCreate(Bundle icicle) {
         super.onCreate(icicle);
         setContentView(R.layout.countries);

         ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
                 android.R.layout.simple_dropdown_item_1line, COUNTRIES);
         AutoCompleteTextView textView = (AutoCompleteTextView)
                 findViewById(R.id.countries_list);
         textView.setAdapter(adapter);
     }

     private static final String[] COUNTRIES = new String[] {
         "Belgium", "France", "Italy", "Germany", "Spain"
     };
 }
 </pre>

 <p>See the <a href="{@docRoot}guide/topics/ui/controls/text.html">Text Fields</a>
 guide.</p>

 @attr ref android.R.styleable#AutoCompleteTextView_completionHint
 @attr ref android.R.styleable#AutoCompleteTextView_completionThreshold
 @attr ref android.R.styleable#AutoCompleteTextView_completionHintView
 @attr ref android.R.styleable#AutoCompleteTextView_dropDownSelector
 @attr ref android.R.styleable#AutoCompleteTextView_dropDownAnchor
 @attr ref android.R.styleable#AutoCompleteTextView_dropDownWidth
 @attr ref android.R.styleable#AutoCompleteTextView_dropDownHeight
 @attr ref android.R.styleable#ListPopupWindow_dropDownVerticalOffset
 @attr ref android.R.styleable#ListPopupWindow_dropDownHorizontalOffset
*/
var AutoCompleteTextView = {

/**
*/
setOnClickListener : function(  ) {},

/**<p>Sets the optional hint text that is displayed at the bottom of the
 the matching list.  This can be used as a cue to the user on how to
 best use the list, or to provide extra information.</p>
@param {Object {CharSequence}} hint the text to be displayed to the user
@see #getCompletionHint()
@attr ref android.R.styleable#AutoCompleteTextView_completionHint
*/
setCompletionHint : function(  ) {},

/**Gets the optional hint text displayed at the bottom of the the matching list.
@return {Object {java.lang.CharSequence}} The hint text, if any
@see #setCompletionHint(CharSequence)
@attr ref android.R.styleable#AutoCompleteTextView_completionHint
*/
getCompletionHint : function(  ) {},

/**Returns the current width for the auto-complete drop down list.

 This can be a fixed width, or {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT}
 to fill the screen, or {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
 to fit the width of its anchor view.
@return {Number} the width for the drop down list
@attr ref android.R.styleable#AutoCompleteTextView_dropDownWidth
*/
getDropDownWidth : function(  ) {},

/**Sets the current width for the auto-complete drop down list.

 This can be a fixed width, or {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT}
 to fill the screen, or {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
 to fit the width of its anchor view.
@param {Number} width the width to use
@attr ref android.R.styleable#AutoCompleteTextView_dropDownWidth
*/
setDropDownWidth : function(  ) {},

/**<p>Returns the current height for the auto-complete drop down list.

 This can be a fixed width, or {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT}
 to fill the screen, or {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
 to fit the width of its anchor view.
@return {Number} the height for the drop down list
@attr ref android.R.styleable#AutoCompleteTextView_dropDownHeight
*/
getDropDownHeight : function(  ) {},

/**Sets the current height for the auto-complete drop down list.

 This can be a fixed width, or {@link android.view.ViewGroup.LayoutParams#MATCH_PARENT}
 to fill the screen, or {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
 to fit the width of its anchor view.
@param {Number} height the height to use
@attr ref android.R.styleable#AutoCompleteTextView_dropDownHeight
*/
setDropDownHeight : function(  ) {},

/**<p>Returns the id for the view that the auto-complete drop down list is anchored to.</p>
@return {Number} the view's id, or {@link View#NO_ID} if none specified
@attr ref android.R.styleable#AutoCompleteTextView_dropDownAnchor
*/
getDropDownAnchor : function(  ) {},

/**<p>Sets the view to which the auto-complete drop down list should anchor. The view
 corresponding to this id will not be loaded until the next time it is needed to avoid
 loading a view which is not yet instantiated.</p>
@param {Number} id the id to anchor the drop down list view to
@attr ref android.R.styleable#AutoCompleteTextView_dropDownAnchor
*/
setDropDownAnchor : function(  ) {},

/**<p>Gets the background of the auto-complete drop-down list.</p>
@return {Object {android.graphics.drawable.Drawable}} the background drawable
@attr ref android.R.styleable#PopupWindow_popupBackground
*/
getDropDownBackground : function(  ) {},

/**<p>Sets the background of the auto-complete drop-down list.</p>
@param {Object {Drawable}} d the drawable to set as the background
@attr ref android.R.styleable#PopupWindow_popupBackground
*/
setDropDownBackgroundDrawable : function(  ) {},

/**<p>Sets the background of the auto-complete drop-down list.</p>
@param {Number} id the id of the drawable to set as the background
@attr ref android.R.styleable#PopupWindow_popupBackground
*/
setDropDownBackgroundResource : function(  ) {},

/**<p>Sets the vertical offset used for the auto-complete drop-down list.</p>
@param {Number} offset the vertical offset
@attr ref android.R.styleable#ListPopupWindow_dropDownVerticalOffset
*/
setDropDownVerticalOffset : function(  ) {},

/**<p>Gets the vertical offset used for the auto-complete drop-down list.</p>
@return {Number} the vertical offset
@attr ref android.R.styleable#ListPopupWindow_dropDownVerticalOffset
*/
getDropDownVerticalOffset : function(  ) {},

/**<p>Sets the horizontal offset used for the auto-complete drop-down list.</p>
@param {Number} offset the horizontal offset
@attr ref android.R.styleable#ListPopupWindow_dropDownHorizontalOffset
*/
setDropDownHorizontalOffset : function(  ) {},

/**<p>Gets the horizontal offset used for the auto-complete drop-down list.</p>
@return {Number} the horizontal offset
@attr ref android.R.styleable#ListPopupWindow_dropDownHorizontalOffset
*/
getDropDownHorizontalOffset : function(  ) {},

/**<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 {Number} 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
*/
setDropDownAnimationStyle : function(  ) {},

/**<p>Returns the animation style that is used when the drop-down list appears and disappears
 </p>
@return {Number} the animation style that is used when the drop-down list appears and disappears
@hide Pending API council approval
*/
getDropDownAnimationStyle : function(  ) {},

/**
@return {Boolean} Whether the drop-down is visible as long as there is {@link #enoughToFilter()}
@hide Pending API council approval
*/
isDropDownAlwaysVisible : function(  ) {},

/**Sets whether the drop-down should remain visible as long as there is there is
 {@link #enoughToFilter}().  This is useful if an unknown number of results are expected
 to show up in the adapter sometime in the future.

 The drop-down will occupy the entire screen below {@link #getDropDownAnchor} regardless
 of the size or content of the list.  {@link #getDropDownBackground}() will fill any space
 that is not used by the list.
@param {Boolean} dropDownAlwaysVisible Whether to keep the drop-down visible.
@hide Pending API council approval
*/
setDropDownAlwaysVisible : function(  ) {},

/**Checks whether the drop-down is dismissed when a suggestion is clicked.
@hide Pending API council approval
*/
isDropDownDismissedOnCompletion : function(  ) {},

/**Sets whether the drop-down is dismissed when a suggestion is clicked. This is
 true by default.
@param {Boolean} dropDownDismissedOnCompletion Whether to dismiss the drop-down.
@hide Pending API council approval
*/
setDropDownDismissedOnCompletion : function(  ) {},

/**<p>Returns the number of characters the user must type before the drop
 down list is shown.</p>
@return {Number} the minimum number of characters to type to show the drop down
@see #setThreshold(int)
@attr ref android.R.styleable#AutoCompleteTextView_completionThreshold
*/
getThreshold : function(  ) {},

/**<p>Specifies the minimum number of characters the user has to type in the
 edit box before the drop down list is shown.</p>

 <p>When <code>threshold</code> is less than or equals 0, a threshold of
 1 is applied.</p>
@param {Number} threshold the number of characters to type before the drop down
                  is shown
@see #getThreshold()
@attr ref android.R.styleable#AutoCompleteTextView_completionThreshold
*/
setThreshold : function(  ) {},

/**<p>Sets the listener that will be notified when the user clicks an item
 in the drop down list.</p>
@param {Object {AdapterView.OnItemClickListener}} l the item click listener
*/
setOnItemClickListener : function(  ) {},

/**<p>Sets the listener that will be notified when the user selects an item
 in the drop down list.</p>
@param {Object {AdapterView.OnItemSelectedListener}} l the item selected listener
*/
setOnItemSelectedListener : function(  ) {},

/**<p>Returns the listener that is notified whenever the user clicks an item
 in the drop down list.</p>
@return {Object {android.widget.AdapterView.OnItemClickListener}} the item click listener
@deprecated Use {@link #getOnItemClickListener()} intead
*/
getItemClickListener : function(  ) {},

/**<p>Returns the listener that is notified whenever the user selects an
 item in the drop down list.</p>
@return {Object {android.widget.AdapterView.OnItemSelectedListener}} the item selected listener
@deprecated Use {@link #getOnItemSelectedListener()} intead
*/
getItemSelectedListener : function(  ) {},

/**<p>Returns the listener that is notified whenever the user clicks an item
 in the drop down list.</p>
@return {Object {android.widget.AdapterView.OnItemClickListener}} the item click listener
*/
getOnItemClickListener : function(  ) {},

/**<p>Returns the listener that is notified whenever the user selects an
 item in the drop down list.</p>
@return {Object {android.widget.AdapterView.OnItemSelectedListener}} the item selected listener
*/
getOnItemSelectedListener : function(  ) {},

/**Set a listener that will be invoked whenever the AutoCompleteTextView's
 list of completions is dismissed.
@param {Object {AutoCompleteTextView.OnDismissListener}} dismissListener Listener to invoke when completions are dismissed
*/
setOnDismissListener : function(  ) {},

/**<p>Returns a filterable list adapter used for auto completion.</p>
@return {Object {android.widget.ListAdapter}} a data adapter used for auto completion
*/
getAdapter : function(  ) {},

/**<p>Changes the list of data used for auto completion. The provided list
 must be a filterable list adapter.</p>

 <p>The caller is still responsible for managing any resources used by the adapter.
 Notably, when the AutoCompleteTextView is closed or released, the adapter is not notified.
 A common case is the use of {@link android.widget.CursorAdapter}, which
 contains a {@link android.database.Cursor} that must be closed.  This can be done
 automatically (see
 {@link android.app.Activity#startManagingCursor(android.database.Cursor)
 startManagingCursor()}),
 or by manually closing the cursor when the AutoCompleteTextView is dismissed.</p>
@param {Object {ListAdapter}} adapter the adapter holding the auto completion data
@see #getAdapter()
@see android.widget.Filterable
@see android.widget.ListAdapter
*/
setAdapter : function(  ) {},

/**
*/
onKeyPreIme : function(  ) {},

/**
*/
onKeyUp : function(  ) {},

/**
*/
onKeyDown : function(  ) {},

/**Returns <code>true</code> if the amount of text in the field meets
 or exceeds the {@link #getThreshold} requirement.  You can override
 this to impose a different standard for when filtering will be
 triggered.
*/
enoughToFilter : function(  ) {},

/**Refreshes the auto complete results. You usually shouldn't have to manually refresh the
 AutoCompleteResults as this is done automatically whenever the text changes. However if the
 results are not available and have to be fetched, you can call this function after fetching
 the results.
*/
refreshAutoCompleteResults : function(  ) {},

/**<p>Indicates whether the popup menu is showing.</p>
@return {Boolean} true if the popup menu is showing, false otherwise
*/
isPopupShowing : function(  ) {},

/**<p>Clear the list selection.  This may only be temporary, as user input will often bring
 it back.
*/
clearListSelection : function(  ) {},

/**Set the position of the dropdown view selection.
@param {Number} position The position to move the selector to.
*/
setListSelection : function(  ) {},

/**Get the position of the dropdown view selection, if there is one.  Returns
 {@link android.widget.ListView#INVALID_POSITION android.widget.ListView.INVALID_POSITION} if there is no dropdown or if
 there is no selection.
@return {Number} the position of the current selection, if there is one, or
 {@link ListView#INVALID_POSITION ListView.INVALID_POSITION} if not.
@see ListView#getSelectedItemPosition()
*/
getListSelection : function(  ) {},

/**<p>Performs the text completion by converting the selected item from
 the drop down list into a string, replacing the text box's content with
 this string and finally dismissing the drop down menu.</p>
*/
performCompletion : function(  ) {},

/**
*/
onCommitCompletion : function(  ) {},

/**Identifies whether the view is currently performing a text completion, so subclasses
 can decide whether to respond to text changed events.
*/
isPerformingCompletion : function(  ) {},

/**Like {@link #setText}(CharSequence), except that it can disable filtering.
@param {Object {CharSequence}} filter If <code>false</code>, no filtering will be performed
        as a result of this call.
*/
setText : function(  ) {},

/**{@inheritDoc}
*/
onFilterComplete : function(  ) {},

/**
*/
onWindowFocusChanged : function(  ) {},

/**<p>Closes the drop down if present on screen.</p>
*/
dismissDropDown : function(  ) {},

/**Issues a runnable to show the dropdown as soon as possible.
@hide internal used only by SearchDialog
*/
showDropDownAfterLayout : function(  ) {},

/**Ensures that the drop down is not obscuring the IME.
@param {Boolean} visible whether the ime should be in front. If false, the ime is pushed to
 the background.

 This method is deprecated. Please use the following methods instead.
 Use {@link #setInputMethodMode} to ensure that the drop down is not obscuring the IME.
 Use {@link #showDropDown()} to show the drop down immediately
 A combination of {@link #isDropDownAlwaysVisible()} and {@link #enoughToFilter()} to decide
 whether to manually trigger {@link #showDropDown()} or not.
@hide internal used only here and SearchDialog
*/
ensureImeVisible : function(  ) {},

/**This method is deprecated. Please use {@link #getInputMethodMode}() instead.
@hide This API is not being used and can be removed.
*/
isInputMethodNotNeeded : function(  ) {},

/**Returns the input method mode used by the auto complete dropdown.
*/
getInputMethodMode : function(  ) {},

/**Use this method to specify when the IME should be displayed. This function can be used to
 prevent the dropdown from obscuring the IME.
@param {Number} mode speficies the input method mode. use one of the following values:

 {@link ListPopupWindow#INPUT_METHOD_FROM_FOCUSABLE} IME Displayed if the auto-complete box is
 focusable.
 {@link ListPopupWindow#INPUT_METHOD_NEEDED} Always display the IME.
 {@link ListPopupWindow#INPUT_METHOD_NOT_NEEDED}. The auto-complete suggestions are always
 displayed, even if the suggestions cover/hide the input method.
*/
setInputMethodMode : function(  ) {},

/**<p>Displays the drop down on screen.</p>
*/
showDropDown : function(  ) {},

/**Forces outside touches to be ignored. Normally if {@link #isDropDownAlwaysVisible}() is
 false, we allow outside touch to dismiss the dropdown. If this is set to true, then we
 ignore outside touch even when the drop down is not set to always visible.
@hide used only by SearchDialog
*/
setForceIgnoreOutsideTouch : function(  ) {},

/**Sets the validator used to perform text validation.
@param {Object {AutoCompleteTextView.Validator}} validator The validator used to validate the text entered in this widget.
@see #getValidator()
@see #performValidation()
*/
setValidator : function(  ) {},

/**Returns the Validator set with {@link #setValidator},
 or <code>null</code> if it was not set.
@see #setValidator(android.widget.AutoCompleteTextView.Validator)
@see #performValidation()
*/
getValidator : function(  ) {},

/**If a validator was set on this view and the current string is not valid,
 ask the validator to fix it.
@see #getValidator()
@see #setValidator(android.widget.AutoCompleteTextView.Validator)
*/
performValidation : function(  ) {},


};