Comments (3)
Hello ultimaters. CircleImageView extends the standard ImageView so all the usual attributes such as layoutHeight should work normally. Can you post the version you are using, your toolbar layout (XML or code), and a screenshot of the toolbar?
Thanks!
from circleimageview.
My toolbar layout:
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/tools"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:theme="@style/AppTheme.base">
<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/avater_image"
android:layout_width="wrap_content"
android:layout_height="wrrap_conten"
app:border_width="1dp"
app:border_color="#FFF"/>
<TextView
android:id="@+id/tv_header_nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="nickname"
android:textSize="@dimen/card_font_head"
android:textColor="@android:color/white" />
</android.support.v7.widget.Toolbar>
I use the Picasso to load user avater:
ImageView avaterView = (ImageView) findViewById(R.id.avater_image);
Picasso.with(this).load(user.getAvaterURL()).into(avaterView);
the Image is overflow outside the contaner.
eh, I didn't got the screen shot, .sorry
from circleimageview.
Please add a screenshot. I assume what you mean is that you only see a part of the image inside the circle, correct? To fix that just set layout_width
and layout_height
to a fixed value.
This happens, because the scaleType
is centerCrop
and your avatar is probably larger than the ImageView
.
from circleimageview.
Related Issues (20)
- Glide not loading pictures! HOT 2
- 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
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.