I use the AutoCompleteTextView and display the phone names. But i can only display 1 line in the dropdown.
I want to display 1 line with the name and in the second line the phone number. How could i do this? I have only the layout android.R.layout.simple_dropdown_item_1line, but no 2line !?!? The standard message app display in the "to" field 2 lines for each entry. Here some code: AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.acPhone); textView.setAdapter(contactAdapter); public View newView(Context context, Cursor cursor, ViewGroup parent) { final LayoutInflater inflater = LayoutInflater.from (context); final TextView view = (TextView) inflater.inflate( android.R.layout.simple_dropdown_item_1line, parent, false); view.setText(cursor.getString(3)); return view; } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---