Tuesday, April 10, 2012

[android-developers] Re: Crop ImageView that fits to the image

Hi All,

I dont have any luck to fix that out. please help me out here if any
one knows.

Thanks

On Apr 10, 10:00 pm, Android Developer <c2dmdevelo...@gmail.com>
wrote:
> Hi All,
>
> I have an imageview and i set background and source for that. How to crop
> the imageView that fits exactly with image alone.
>
> In the attachment oval is the image. how do i set that while background
> color only for the image.
>
> I tried with scaleType but no luck and i attached the code i tried
>
> <ImageView  android:layout_height="wrap_content"
> android:layout_width="wrap_content" android:scaleType="centerCrop"
>             android:src="@drawable/circle" android:background="#ffffff"
> android:id="@+id/image"></ImageView>
>
> Thanks in Advance.
>
>  imagebackground.png
> 25KViewDownload

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate