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
Image unwanted black background #31
Comments
The problem came from the property |
Oh thank you! I didn't think about that! |
I have the same issue exactly with your sample code in readme.md and without scaleType |
Please download the sample project "circularimageview-example" and try to see the difference with your implementation. |
Same here. Gif is working fine, a jpg has a black background |
Tried https://github.com/vinc3m1/RoundedImageView and it worked with the same JPG file and no black background. But it doesn't feature the nice dropshadow, so your module would be a better alternative :) |
I actually identified the problem. |
@m1ga Do you know if with RoundedImageView your view is centered when you integrate your view in the view parent with <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<CustomView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout> |
yes it's
|
I had new release to fix that temporarily but you must specify the size of the view if you added to a parent view using a gravity: compile 'com.mikhaellopez:circularimageview:3.0.2' |
I still have the same issue as described (I am on v3.0.2). Any updates on that one? In my case I defined the size of the view as you suggested @lopspower |
I played arround for some time now and found out that the black background disappears when I use app:civ_shadow="false". Maybe this helps to fix the issue? |
Hi!
I have a black background when using your walter image. But when using a transparent image (ic_launcher), it works perfectly... I can't find the solution. Can you help me?
Here is the screenshot:
And here is the xml code:
The text was updated successfully, but these errors were encountered: