Skip to content

nativescript-toasty 4.1.0 Android 11: backgroundColor and color is not applied #19

@felixkrautschuk

Description

@felixkrautschuk

On Android 11, the backgroundColor and color is not applied correctly, it is always lightgray (and then the app crashes, as described here: #18)

const toast = new Toasty({ text : text })
            .setToastPosition(ToastPosition.BOTTOM)
            .setTextColor("#FFFFFF")
            .setBackgroundColor("#656565");  //dark

toast.show();

The backgroundcolor should be dark, but it is alyways light. The color should be light, but it is dark.

Activity

triniwiz

triniwiz commented on Jan 15, 2021

@triniwiz
Owner

It's currently not support oob (in previous versions we used the getView() but it returns null) but it was changed in Android 11 check them out here .... in the future we can look at using a custom view to get back those features

felixkrautschuk

felixkrautschuk commented on Jan 15, 2021

@felixkrautschuk
Author

@triniwiz OK thanks, I did not see your note on your GitHub.io page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @felixkrautschuk@triniwiz

        Issue actions

          nativescript-toasty 4.1.0 Android 11: backgroundColor and color is not applied · Issue #19 · triniwiz/nativescript-plugins