[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 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 > > android:layout_width="wrap_content" android:scaleType="centerCrop" > android:src="@drawable/circle" android:background="#ff" > android:id="@+id/image"> > > 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Crop ImageView that fits to the image
I hae posted the answer on stackoverflow : http://stackoverflow.com/questions/10095306/crop-imageview-that-fits-to-the-image-in-android/10096381#10096381 On Apr 10, 10:00 pm, Android Developer 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 > > android:layout_width="wrap_content" android:scaleType="centerCrop" > android:src="@drawable/circle" android:background="#ff" > android:id="@+id/image"> > > 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Crop ImageView that fits to the image
Do you think you could wait more than 2 hours for an answer? People answer questions here in their spare time... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 10, 2012 at 1:21 PM, Android Developer wrote: > 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 > 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 > > > > > android:layout_width="wrap_content" android:scaleType="centerCrop" > > android:src="@drawable/circle" android:background="#ff" > > android:id="@+id/image"> > > > > 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+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Crop ImageView that fits to the image
On Tue, Apr 10, 2012 at 01:40:01PM -0600, Justin Anderson wrote: > Do you think you could wait more than 2 hours for an answer? People answer > questions here in their spare time... Personally, when someone gets impatient like that (a few days, I can see...but hours? I've seen some post again after about 20 seconds ... and again in another 20 seconds), no matter how well I know the answer---as I do in this case, I don't answer (except maybe to let them know that doing that only gets them ignored). As the old saying goes, "Lack of planning on your part does not constitute an emergency on mine." :-) Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 < Running FreeBSD 7.0 > spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W "The iPad is a status symbol for yuppies. The Android is for people who actually want something that works." Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Crop ImageView that fits to the image
Spooky wrote: > > Justin Anderson wrote: > > Do you think you could wait more than 2 hours for an answer? People > answer > > questions here in their spare time... > > Personally, when someone gets impatient like that (a few days, I can > see...but hours? I've seen some post again after about 20 seconds ... > and again in another 20 seconds), no matter how well I know the > answer---as I do in this case, I don't answer (except maybe to let > them know that doing that only gets them ignored). > > As the old saying goes, "Lack of planning on your part does not > constitute an emergency on mine." :-) > So you took the time to post a post bragging about how much you're *not* helping. I don't know the answer, but you are being incredibly haughty, judgmental and nasty to rub it in the OP's face that how you do and yet refuse to share it. Who the hell are you to sit in judgment like that? Nobody! Less than nobody. What a winner. -- Lew -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en