Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

[Bug] Opacity not working on Android #2

Open
jamesmontemagno opened this issue Jun 20, 2016 · 5 comments
Open

[Bug] Opacity not working on Android #2

jamesmontemagno opened this issue Jun 20, 2016 · 5 comments

Comments

@jamesmontemagno
Copy link
Owner

Copied from: jamesmontemagno/Xamarin.Plugins#295

Bug

Version Number of Plugin:
Device Tested On:
Simulator Tested On: Android lollipop / iOS 8 or higher

Expected Behavior

Actual Behavior

Setting CircleImage's opacity is not working. If I set it as under 1, it's not shown.
(Only Android. and Xamarin's 'Image' is working fine.)

Steps to reproduce the Behavior

@Matti-Koopa
Copy link

I am having this (or a related?) problem only on XXHDPI Android phones.
If I am setting a FillColor and an Opacity < 1, it will cut off the top 1/5 of the image (full opacity there).

<plugins:CircleImage Opacity="0.3"
                         FillColor="Black"
                         BorderThickness="2" BorderColor="{StaticResource BorderColor}"
                         HorizontalOptions="Center" VerticalOptions="Center"
                         HeightRequest="120" WidthRequest="120" Aspect="AspectFill">

@jamesmontemagno
Copy link
Owner Author

Can you show me a screenshot? Trying to repo here.

@Matti-Koopa
Copy link

Sure.
I just pasted the code on my above post in a new XAML page.
You can reproduce it on the Visual Studio emulator "5.1'' Lollipop (5.1.1) XXHDPI Phone (Android 5.1 - API 22)" or any high-dpi phone.
unbenannt

@jamesmontemagno
Copy link
Owner Author

OH I see, you don't have an image in there? I will test this out, interesting.

@taublast
Copy link

Maybe i misunderstand something bit imho it is not a bug.
In this case of an Image parent property Opacity affects only the Bitmap image that is set to none in your code.
And the Color opacity is opaque, have set it Black instead of a transparent color.
If you set a transparent color the opacity you indicate in the color value will take effect.
If you set an image from a source Opacity property will take effect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants