listpopupwindow

TextView can't change line In AutoCompleteTextView DropDownListVIew

给你一囗甜甜゛ 提交于 2021-01-29 16:53:53
问题 I tested on Android Api 28. I added a AutoCompleteTextView and it showed like below: I have try: 1.setting lines =3,maxLines = 3,scrollHorizontally = true,inputType="textMultiLine",singleLine =true,and it made no change. 2.setting LayoutParams,and it showed like below: . similar case:textview of autocompletetextview showing data in single line 回答1: Just need a LinerLayout to wrap the TextView in the layout of item: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"