Comments (2)
This is not a bug. Even not the problem of 'weight'.
You set the width of CircleImageView to match_parent which means that the width of screen.
All the CircleImageView want to do is to scale your picture to cover itself.
Set the width to 96dp should work well.
from circleimageview.
Works as expected. If you set the width of your CircleImageView
to match_parent
, the image is stretched uniformly and then cropped to a circle with the requested height, in your case 96dp
.
from circleimageview.
Related Issues (20)
- The View can't work with android:scaleType attribute. HOT 1
- can I pass a letter and showed as Image ? HOT 2
- Load gif HOT 1
- Set three circle image view in same activity HOT 1
- CicleImageView doesn't work with FrameLayout HOT 2
- circular image view onclick listener not working HOT 1
- the following class could not be instantiated HOT 3
- App crash in Android OS version 7(nougat), Error inflating class de.hdodenhof.circleimageview.CircleImageView HOT 3
- Image gets rotate when setting to an ImageView HOT 1
- Pb dia HOT 1
- Circular image View destroy image px. HOT 2
- Width and height must be > 0 when using CircularProgressDrawable HOT 1
- Native Crash HOT 1
- CircleImageView OutOfMemoryError HOT 2
- Cy
- The following classes could not be instantiated: -Β de.hdodenhof.circleimageview.CircleImageView HOT 1
- Circle image view not working in android 7 HOT 1
- Image is cropped more from corners in Moto G5s Plus HOT 5
- Clarification: Can I able to add the text below the image using this package HOT 1
- Doesn't work in constrained layouts HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circleimageview.