Samsung S6 disabled button text disappears

I have a Xamarin.Forms shared project and I have just stumbled upon a weird behavior that is related to Samsung S6 running Android 7. I have not been able to recreate the issue on any other device, no matter what Android it was running.

In my Android project I am using the native theme for the app (global::Android.Resource.Style.ThemeDeviceDefault), which means that all the controls have their look based on the system the app is installed on.

It works fine on every device that I have tried so far, except Samsung S6, where disabled buttons do not display their text anymore. Once they are re-enabled, the text appears again. You can see it here: http://imgur.com/a/sueqP

Is there any way to deal with this issue? I know I can just use a standard theme on every device, but I kind of like the idea that the controls look native on every device.

Answers

  • JulienRosenJulienRosen CAMember ✭✭✭✭

    just guessing here but maybe the disabled text color is the same as the button color on this specific theme/flavor of android

    not sure if that helps

  • TomasOplatek.6136TomasOplatek.6136 CZMember ✭✭

    Yeah that is my guess too, but that does not help me much, and it seems weird that this would be the default behavior of Samsung S6 buttons.

  • TomasOplatek.6136TomasOplatek.6136 CZMember ✭✭

    Can anyone confirm that this happens on Samsung S6 consistently with Xamarin.Forms? I find it hard to believe that nobody would report it until now.

Sign In or Register to comment.