Created attachment 17412 [details]
Setting InputTransparent="False" does not work on Android if the background color is not set or if it is set to Transparent. The color must be set to a **non-transparent** color in order for taps not to propagate down.
On iOS, all is fine.
Please see repro.
XF 188.8.131.52-pre1 / Samsung S6.
I confirm this issue. I have experienced in one of my apps. I had to set InputTransparent to false and IsEnabled to true on a ListView to be able to disable user interaction.
In this example if the BackgroundColor is set to non-transparent, but Opacity is also set - for example - to 0.5, the ContentView let tap events across. Even if IsEnabled is set to false on it.
Please see my PR: https://github.com/xamarin/Xamarin.Forms/pull/344
Should be fixed in 2.3.4-pre1. Thank you!
I have checked this issue with Xamarin.Forms 2.3.4-pre1 and I am still getting same issue with Android and on iOS its working fine.
Hence reopened this issue.
Please have a look screencast and let me know If I have missed anything to verify this issue.
A better fix should be https://github.com/xamarin/Xamarin.Forms/pull/483, but it needs to be merged.
There are a couple of other seemingly related bug reports that are not resolved in the 2.3.4-pre1.
Thought I would bring it up so you can see if the issues are related and whether they may be fixed by the pull request noted in comment 5 above.
Should be fixed on 2.3.5-pre1.
On xamarin.form version 184.108.40.2066-pre6,Used code
<Button Text="Click" Clicked="Button_OnClicked"/>
<ContentView BackgroundColor="Transparent" InputTransparent="False"/>
Observed that button is still clickable on android. However it is working fine in iOS. Hence reopening the issue
ScreenCast link : https://www.screencast.com/t/mTWihlbTR
I was also able to still reproduce this issue with Forms 2.3.5-pre6. However I tested with the 220.127.116.11-nightly build as well and the issue appears to be resolved there, so the fix for this issue will be in future release.