Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MaterialButton] click event not working on Google Pixel 5 #1928

Closed
agustinsivoplas opened this issue Dec 16, 2020 · 3 comments
Closed

[MaterialButton] click event not working on Google Pixel 5 #1928

agustinsivoplas opened this issue Dec 16, 2020 · 3 comments

Comments

@agustinsivoplas
Copy link

Description: The click event does not working in Google Pixel 5 (Android 11)

Expected behavior: Click event is triggered (works on Google Pixel 3a with Android 11)

Source code:

<com.google.android.material.button.MaterialButton
        android:id="@+id/signInFingerprintButton"
        style="@style/PrimaryTextButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="@string/fingerprint"
        app:icon="@drawable/ic_fingerprint"
        app:iconTint="@color/colorPrimaryDark"
        app:layout_constraintEnd_toStartOf="@+id/signInPasscodeButton"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
<style name="PrimaryTextButton" parent="Widget.MaterialComponents.Button.TextButton">
        <item name="textAllCaps">false</item>
        <item name="android:layout_height">@dimen/button_height</item>
        <item name="rippleColor">@color/ripple_gray</item>
        <item name="android:textColor">@color/colorPrimaryDark</item>
        <item name="android:textSize">@dimen/text_size_extra_small</item>
        <item name="android:lineSpacingExtra">1sp</item>
        <item name="fontFamily">@font/avenir_next_demibold_font</item>
    </style>

Android API version: Android 11

Material Library version: 1.2.0-alpha06

Device: Google Pixel 5

ezgif com-gif-maker

@eemi2010
Copy link

Same on Android 5 Pixel 2. Is there a workaround for this ? Another event maybe ?

@drchen
Copy link
Contributor

drchen commented Nov 4, 2021

Is this still reproducible?

@drchen
Copy link
Contributor

drchen commented Jan 12, 2022

I'll close this issue for now due to no further info available. Please feel free to reopen it if this is still happening.

@drchen drchen closed this as completed Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants