Code example for AutoCompleteTextView

Methods: showDropDown

0
         
        actv.setOnFocusChangeListener(new OnFocusChangeListener() {
			@Override 
			public void onFocusChange(View v, boolean hasFocus) {
				if (hasFocus) {
					actv.showDropDown();
				} else { 
					actv.dismissDropDown();
				} 
			} 
		}); 
         
        fillSuggestions(actv);
         
        final View progressBar = findViewById(R.id.progressBar);
        final RelativeLayout createAccountBtn = (RelativeLayout) findViewById(R.id.createAccountBtn);
        createAccountBtn.setOnClickListener(new OnClickListener() {
			@Override 
			public void onClick(View v) {
				 
Contextual code suggestions in your IDE  Get Codota for Java