I want to support AutoCompleteTextView
in android. How can wrap the content of the view data to the width of the screen?
Asked
Active
Viewed 108 times
-1
-
use `android:layout_width="match_parent"` – kike Mar 27 '19 at 12:43
2 Answers
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" />

Infusion Analysts
- 471
- 2
- 6