-1

I want to support AutoCompleteTextView in android. How can wrap the content of the view data to the width of the screen?

Cristan
  • 12,083
  • 7
  • 65
  • 69
AdminS
  • 1
  • 2

2 Answers2

0

Use this, you can set minimum width and maximum width in "dp"

android:layout_width="match_parent"
android:maxWidth=""
android:mixWidth=""
Navin Kumar
  • 3,393
  • 3
  • 21
  • 46
0

Try this code.. you can give fixed width and height into dp.

 <AutoCompleteTextView
  android:id="@+id/autoCompleteTextView1"
  android:layout_width="wrap_content" 
  android:layout_height="wrap_content"
  android:ems="10" />