material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[AutoCompleteTextView] Dropdown selections cut off

Open gattigcg opened this issue 1 year ago • 0 comments
trafficstars

In my dropdown selections, if the text is long and it needs to exceed 1 line, it just cuts the text.

image

Pixel 4XL.

My selection layout is:

<?xml version="1.0" encoding="utf-8"?>
<TextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:tools="http://schemas.android.com/tools"
    android:padding="@dimen/_14sdp"
    tools:text="Stuffasjdkasdhkjashdjkasdhkajsdhkjsadhkajsdhkasjdhjksadkadhkajsdhjhkhkjhajksdhjkaajshdjas"
    xmlns:android="http://schemas.android.com/apk/res/android"></TextView>

I have tried adding various things like

android:singleLine="false" android:maxLines=3 etc... Nothing seems to be working.

gattigcg avatar Feb 01 '24 19:02 gattigcg