IT. Expert System.

Android Reference

MultiAutoCompleteTextView


android.widget

Class MultiAutoCompleteTextView

  • All Implemented Interfaces:
    Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, ViewTreeObserver.OnPreDrawListener, Filter.FilterListener


    public class MultiAutoCompleteTextView
    extends AutoCompleteTextView
    An editable text view, extending AutoCompleteTextView, that can show completion suggestions for the substring of the text where the user is typing instead of necessarily for the entire thing.

    You must provide a MultiAutoCompleteTextView.Tokenizer to distinguish the various substrings.

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

     public class CountriesActivity extends Activity {
         protected void onCreate(Bundle savedInstanceState) {
             super.onCreate(savedInstanceState);
             setContentView(R.layout.autocomplete_7);
    
             ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                     android.R.layout.simple_dropdown_item_1line, COUNTRIES);
             MultiAutoCompleteTextView textView = (MultiAutoCompleteTextView) findViewById(R.id.edit);
             textView.setAdapter(adapter);
             textView.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
         }
    
         private static final String[] COUNTRIES = new String[] {
             "Belgium", "France", "Italy", "Germany", "Spain"
         };
     }


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 252 / 158750387. Delta: 0.06319 с