2

I want to show 2 lines in autocomplete textview suggestion list. I have customer information such as customerid, customername and address. I want to show customername in first line and customer address in 2nd line. Is it possible to show multilines in Autocomplete textview?

thank you

user553710
  • 200
  • 1
  • 8
  • 16

1 Answers1

0

Yes, it can be done. Just define your layout in a Linear or Relative Layout, and reference the fields individually. Here's a link to a question about making two lines display, you can make the layout for the autocomplete as complicated as you like.

Android: Make AutoCompleteTextView dropdown wrap to 2 lines or more

Community
  • 1
  • 1
Luke Wallace
  • 1,184
  • 1
  • 9
  • 5
  • It's a long time ago. I solved a issue and thanks for your answer. – user553710 Nov 21 '11 at 08:19
  • 1
    @user553710 How it works here is either you delete your question, or you leave it for fellow developers who might encounter the same problem you had (1514 views) and give the answer to whoever found it. You could've answered your own question too – Br0thazS0ul Mar 13 '14 at 14:31
  • 1
    @user553710 It would be great if you could describe the solution you used. Kindly add it as an answer. – Dheeraj Bhaskar Oct 07 '14 at 07:00