Code example for MultiAutoCompleteTextView

Methods: getTextsetText

0
		sendBtn.setEnabled(false);
		sendBtn.setOnClickListener(new View.OnClickListener() {
			@Override 
			public void onClick(View v) {
				if (onSendMessageListener != null) {
					onSendMessageListener.onSendMessage(messageEditText.getText().toString());
					 
					messageEditText.setText("");
				} 
			} 
		}); 
		 
		return view;
	} 
 
	public void setOnSendMessageListener(OnSendMessageListener listener) {
		this.onSendMessageListener = listener;
	} 
	 
	public void setAutoCompleteNicknames(String[] nicknames) {
		messageEditText.setAdapter(new ArrayAdapter<String>(getActivity(), R.layout.write_message_dropdown_item, nicknames));