Hi, I think yes because it works well if I set as background.
https://picasaweb.google.com/109616049711402953088/2011Julius22?authkey=Gv1sRgCK2eofOr_vCHkwE Here is the pictures: the nine patch png, the result with background/ setAlpha, the result with src/setAlpha. Stretching is ok in only one picture and alpha is ok in the other picture. Tamás On júl. 22, 10:23, Raghav Sood <raghavs...@gmail.com> wrote: > Did you adjust the areas to be stretched properly? > > > > > > > > > > On Fri, Jul 22, 2011 at 1:49 PM, b_t <bartata...@gmail.com> wrote: > > Hi, > > > I would like use a 9 patch png in an ImageView. It sounds easy but > > doesn't work for me. > > If I set the popup.9.png drawable as the source then the whole image > > is stretched, not works as I excepted. > > > <ImageView android:layout_width="fill_parent" > > android:layout_height="fill_parent" android:src="@drawable/popup"/> > > > If I set this drawable as background then it works well. > > > But setting as background is not good for me because I would like to > > set alpha value too > > which is for source only not background. > > > This link says too that you should set as background: > > >http://stackoverflow.com/questions/5242880/android-9-patch-graphic-do... > > > Can somebody tell me why doesn't it work? > > > Thanks, > > Tamás > > > -- > > 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 > > -- > Raghav > Soodhttp://www.raghavsood.com/http://wiki.androidappcheck.com/http://www.telstop.tel/https://market.android.com/developer?pub=Raghav+Sood -- 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