Skip to content
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

Black background #68

Closed
thatsVishal opened this issue Oct 14, 2016 · 8 comments
Closed

Black background #68

thatsVishal opened this issue Oct 14, 2016 · 8 comments

Comments

@thatsVishal
Copy link

I'am using picasso to load image into circular view, if I set the placeholder or the default image then it shows the regular background but it show black background if I use another image

@raiarainne
Copy link

I have same issue too
screenshot_2017-07-02-21-43-20

@thatsVishal
Copy link
Author

Seems like there is no one who is currently working on this project, I have come up with a library called fresco by facebook, it does not gives such error.

@Rainer-Lang
Copy link

Rainer-Lang commented Aug 17, 2017

@thatsVishal Why not Glide? And how about a colored border and a shadow?

@thatsVishal
Copy link
Author

I haven't tried Glide. And yes, fresco provides colored border, but i am not sure with the shadow.

@raiarainne
Copy link

I found the reason.
in my case, the shadow was be occurred when i add touch event on the image view.
So i solved the issue as following.

<de.hdodenhof.circleimageview.CircleImageView
android:layout_width="67dp"
android:layout_height="67dp"
android:id="@+id/imv_profileimage"
android:src="@drawable/photo"
android:background="@drawable/my_selector"
/>

  • @drawable/my_selector.xml

Picasso.with(this).load(Commons.g_user.get_photoUrl()).centerInside().placeholder(R.drawable.photo).noFade().fit().into(profileimage);

I hope this will helpful for you. :)

@thatsVishal
Copy link
Author

Thanks, I will try that.. :)

@tomospin
Copy link

I also found the black color problem
app:civ_border_color="#FFFFFF"
app:civ_border_width="4dp"
app:civ_border="true"
app:civ_shadow="true"
app:civ_shadow_radius="0"
This setting can fix the problem. The main key is that civ_shadow must be true and radius must = 0

@lopspower
Copy link
Owner

Fix on f5b294c

You can now used civ_background_color properties or setBackgroundColor method to set a background color for PNG image

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

No branches or pull requests

5 participants