android.support.v7.widget.AppCompatAutoCompleteTextView Java Examples

The following examples show how to use android.support.v7.widget.AppCompatAutoCompleteTextView. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PlaceSearchDialog.java    From place-search-dialog with Apache License 2.0 6 votes vote down vote up
public void init() {

        locationET = (AppCompatAutoCompleteTextView) findViewById(R.id.place_search_dialog_location_ET);
        locationTIL = (TextInputLayout) findViewById(R.id.place_search_dialog_location_TIL);
        cancelTV = (AppCompatTextView) findViewById(R.id.place_search_dialog_cancel_TV);
        okTV = (AppCompatTextView) findViewById(R.id.place_search_dialog_ok_TV);
        headerImageIV = (ImageView) findViewById(R.id.place_search_dialog_header_image_IV);

        okTV.setOnClickListener(this);
        cancelTV.setOnClickListener(this);

        buildDialog();

        locationET.setOnItemClickListener(mAutocompleteClickListener);
        mAdapter = new PlaceAutocompleteAdapter(context, mGoogleApiClient, BOUNDS_WORLD, null);
        locationET.setThreshold(3);
        locationET.setAdapter(mAdapter);
    }
 
Example #2
Source File: QmsBlackListFragment.java    From ForPDA with GNU General Public License v3.0 5 votes vote down vote up
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    ViewStub viewStub = (ViewStub) findViewById(R.id.toolbar_content);
    viewStub.setLayoutResource(R.layout.toolbar_qms_black_list);
    viewStub.inflate();
    nickField = (AppCompatAutoCompleteTextView) findViewById(R.id.qms_black_list_nick_field);
    return view;
}
 
Example #3
Source File: ChatThemeCreator.java    From ForPDA with GNU General Public License v3.0 5 votes vote down vote up
public ChatThemeCreator(QmsChatFragment fragment) {
    this.fragment = fragment;
    viewStub = (ViewStub) this.fragment.findViewById(R.id.toolbar_content);
    viewStub.setLayoutResource(R.layout.toolbar_qms_new_theme);
    viewStub.inflate();
    nickField = (AppCompatAutoCompleteTextView) this.fragment.findViewById(R.id.qms_theme_nick_field);
    titleField = (AppCompatEditText) this.fragment.findViewById(R.id.qms_theme_title_field);
    this.userId = this.fragment.currentChat.getUserId();
    this.userNick = this.fragment.currentChat.getNick();
    this.themeTitle = this.fragment.currentChat.getTitle();
    initCreatorViews();
}
 
Example #4
Source File: SearchActivity.java    From android with MIT License 5 votes vote down vote up
private void setupAutocomplete() {
    mAdapter = new GeocoderAdapter(this, getProximityPoint());

    vAutoComplete = (AppCompatAutoCompleteTextView) findViewById(R.id.autocomplete);
    vAutoComplete.setLines(1);
    vAutoComplete.setAdapter(mAdapter);
    vAutoComplete.setOnItemClickListener(this);

    vAutoComplete.setOnEditorActionListener(this);
}
 
Example #5
Source File: AppCompatv7DSL.java    From anvil with MIT License 4 votes vote down vote up
public static BaseDSL.ViewClassResult appCompatAutoCompleteTextView() {
  return BaseDSL.v(AppCompatAutoCompleteTextView.class);
}
 
Example #6
Source File: AppCompatv7DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void appCompatAutoCompleteTextView(Anvil.Renderable r) {
  return BaseDSL.v(AppCompatAutoCompleteTextView.class, r);
}