CircularImageView icon indicating copy to clipboard operation
CircularImageView copied to clipboard

Custom view for circular images in Android while maintaining the best draw performance

Results 47 CircularImageView issues
Sort by recently updated
recently updated
newest added

My app gets crash in the particular this device "Redmi Note 9 Pro Android 11" android.graphics.Bitmap.createScaledBitmap (Bitmap.java:800) com.pkmmte.view.CircularImageView.refreshBitmapShader (CircularImageView.java:341) com.pkmmte.view.CircularImageView.invalidate (CircularImageView.java:262) android.view.ViewRootImpl.invalidateWorld (ViewRootImpl.java:1709)

The lines of code: ``` final CircularImageView circularImageView = (CircularImageView) holder.mRootView.findViewById(R.id.circularImageView); Picasso.with(holder.mRootView.getContext()).load(new File(trackingNumbers.get(position).getImageUrl())).error(R.drawable.no_image_place_holder).noFade().into(circularImageView); ``` The exception: ``` 11-07 16:16:46.246 29353-29353/kael.trackninja E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on...

Hi, I want to change the color of the image, so I used tint to change the color but it's not working. I tried with simple ImageView and its working...

I created a view with CircularImageView as a marker in mapView.like this: ```java final View view = LayoutInflater.from(context).inflate(R.layout.view_group_service_head_view, null); Marker userMarker = aMap.addMarker(userMarkerOptions .icon(BitmapDescriptorFactory.fromView(view)); ``` ```xml ``` There is view...

Headers corrections

I customized a view inherit ImageView,the view can set round corner ,but when I set centCrop scalType ,it cant not show right!do you encounter this situation?

When clearing the current image using setImageBitmap(null) a nullpointer exception occurs: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:591) at com.pkmmte.view.CircularImageView.refreshBitmapShader(CircularImageView.java:341) at com.pkmmte.view.CircularImageView.invalidate(CircularImageView.java:262)...

Hi got this exception. basically i call the below statement twice but OwnerProfilePictureURL is a different URL and i get the exception. `Picasso.with(ma).load(ma.OwnerProfilePictureURL).resize(witdthHeight, witdthHeight).centerCrop().into(userProfileImage);` ``` Fatal Exception: java.lang.NullPointerException: Attempt to...

When I use a transparent image then the border is not has a fix size.

Has an issue with `android:scaleType="center"`