The problem is it does NOT look good because the scaling is unpredictably uneven. 480/678 1:1.41 480/633 1:1.32 So what is round on one screen is elongated on an other.
On Jan 9, 1:12 pm, Kumar Bibek <coomar....@gmail.com> wrote: > Hmm, IF you are generating the Bitmap at runtime, and setting it as the > source to an ImageView, whose scale type is fitXY, that should be ok I > guess. The images will stretch and might look odd. So, you can select the > maximum resolution of the image and use it. > > For smaller sizes, the ImageView will shrink it to fit. > > I can't think of any other approach. > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com > > On Sun, Jan 9, 2011 at 5:32 PM, Mark <android.eggenst...@googlemail.com>wrote: > > > > > > > > > >setBitmap() > > I think I tried that already, but it's the same problem as using it > > with file URIs. It doesn't stretch properly because it's not a > > NinePatch, just a flat image. > > There is something mentioned about NinePatchChunk but I never saw > > anyone getting it to work. > > Assigning NinePatch PNGs via URI or setBitmap just results in the > > image being read as a normal PNG (including the black indicators) and > > then being stretched ignoring the NinePatch info. > > > On Jan 9, 12:53 pm, Kumar Bibek <coomar....@gmail.com> wrote: > > > I am not sure, but have you tried this method? > > > >http://developer.android.com/reference/android/widget/RemoteViews.htm... > > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com > > > > On Sun, Jan 9, 2011 at 5:21 PM, Mark <android.eggenst...@googlemail.com > > >wrote: > > > > > > As written in my Approach 2, I don't see a way to use any of the > > > > > RemoteViews.set...() methods with a NinePatch. > > > > > As far as I see it only works with resource IDs which point to > > > > drawables in the apk. > > > > But I have files outside the apk. > > > > > -- > > > > 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<android-developers%2Bunsubs > > > > cr...@googlegroups.com><android-developers%2Bunsubs > > cr...@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<android-developers%2Bunsubs > > cr...@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