Skip to content

[TextField] Ripple effect on exposed dropdown menu's button is missing when inputType is "none" #5079

@charmins

Description

@charmins

Description: When a TextInputLayout is configured with exposed dropdown menu and android:inputType="none" is applied to make it non-editable, the touch ripple effect on the menu button fails to render.

Expected behavior:

screen-expected.mp4
screen-current.mp4

Source code:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:orientation="vertical">

    <com.google.android.material.textfield.TextInputLayout
        style="@style/Widget.Material3.TextInputLayout.FilledBox.ExposedDropdownMenu"
        android:layout_width="250dp"
        android:layout_height="wrap_content"
        android:hint="Label">

        <AutoCompleteTextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="none"
            app:simpleItems="@array/simple_items" />

    </com.google.android.material.textfield.TextInputLayout>

</LinearLayout>

Minimal sample app repro: The issue is also reproducible in the Catalog app under the "Exposed Dropdown Menu Demo."

Android API version: 36, 37

Material Library version: first appeared in 1.14.0-alpha04

Device: Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions