[android-developers] Re: ninePatch bug?
Did you set the stretch and content areas correctly in the 9 patch? And are you using correct filename format (file.9.png)? Regards Sarwar Erfan -- 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: ninePatch bug?
Yes, I read the api guideline carefully. On Wed, Dec 8, 2010 at 5:26 PM, Sarwar Erfan erfanonl...@gmail.com wrote: Did you set the stretch and content areas correctly in the 9 patch? And are you using correct filename format (file.9.png)? Regards Sarwar Erfan -- 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.comandroid-developers%2bunsubscr...@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: ninePatch bug?
On Wed, Dec 8, 2010 at 9:37 AM, 陈彧堃 chenyuku...@gmail.com wrote: Yes, I read the api guideline carefully. Did you mark the stretchable regions correctly? Did you see in the tool itself your PNG correctly stretched? Any chance of you pasting that image somewhere for people to look at? Daniel -- 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: ninePatch bug?
Not sure which bug you mean. I now of two troubles with 9patch-drawables: - AFAIR (might be wrong): If you've got only ldpi/mdpi images and a hdpi device, the images are first stretched with 9patch to the mdpi pixel size and then to hdpi. I.e., the corners might become sawtoothy, but will stay the same relative size on the device. Solution: Just put hdpi images to the corresponding resource folder - depending on your images, they could be the same, if smaller corners don't matter. - ImageViews will ignore the 9patch-border and stretch the inner image like they do with every other image. This is especially annoying because it would be the only way to offer skinable backgrounds for app widgets, where there's no setBackgroundViewResource. Otherwise you can do a simple workaround by using setBackgroundResource. (Better use FrameView, you don't need a foreground and the overhead of ImageView in that use case.) - Loading an image first and then setting it (as Bitmap or Drawable) will always lose the information it's been a 9patch-drawable On 8 Dez., 06:15, Yukun Chen chenyuku...@gmail.com wrote: Hi: I create a ninepatch image from a png, and I draw it by draw9patch.bat. However, when I put the new png under drawable folder and put it on to a imageview controller, sawtooth shows without any stretching and compressing. Does anyone find the same issue? Thanks. -- 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: ninePatch bug?
I meet the first two. You can see the image here: http://cid-a4a2149221009904.office.live.com/self.aspx/.Public/ban.9.png On Wed, Dec 8, 2010 at 5:43 PM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Wed, Dec 8, 2010 at 9:37 AM, 陈彧堃 chenyuku...@gmail.com wrote: Yes, I read the api guideline carefully. Did you mark the stretchable regions correctly? Did you see in the tool itself your PNG correctly stretched? Any chance of you pasting that image somewhere for people to look at? Daniel -- 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.comandroid-developers%2bunsubscr...@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: ninePatch bug?
I just downloaded the file and loaded it into DrawNinePatch. It looked fine in the preview, when stretched either vertically or horizontally. Are you putting the file into the right alternate resource folder? I.e. drawable-hdpi, etc.? What is your device's resolution? -- Kostya 08.12.2010 13:05, 陈彧堃 пишет: I meet the first two. You can see the image here: http://cid-a4a2149221009904.office.live.com/self.aspx/.Public/ban.9.png On Wed, Dec 8, 2010 at 5:43 PM, Daniel Drozdzewski daniel.drozdzew...@gmail.com mailto:daniel.drozdzew...@gmail.com wrote: On Wed, Dec 8, 2010 at 9:37 AM, 陈彧堃 chenyuku...@gmail.com mailto:chenyuku...@gmail.com wrote: Yes, I read the api guideline carefully. Did you mark the stretchable regions correctly? Did you see in the tool itself your PNG correctly stretched? Any chance of you pasting that image somewhere for people to look at? Daniel -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: ninePatch bug?
my phone is milestone with resolution 854×480, did you notice there is sawtooth at the blue arrow on the right-bottom corner when you load in ninepatch? On Wed, Dec 8, 2010 at 7:32 PM, Kostya Vasilyev kmans...@gmail.com wrote: I just downloaded the file and loaded it into DrawNinePatch. It looked fine in the preview, when stretched either vertically or horizontally. Are you putting the file into the right alternate resource folder? I.e. drawable-hdpi, etc.? What is your device's resolution? -- Kostya 08.12.2010 13:05, 陈彧堃 пишет: I meet the first two. You can see the image here: http://cid-a4a2149221009904.office.live.com/self.aspx/.Public/ban.9.png On Wed, Dec 8, 2010 at 5:43 PM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Wed, Dec 8, 2010 at 9:37 AM, 陈彧堃 chenyuku...@gmail.com wrote: Yes, I read the api guideline carefully. Did you mark the stretchable regions correctly? Did you see in the tool itself your PNG correctly stretched? Any chance of you pasting that image somewhere for people to look at? Daniel -- 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.comandroid-developers%2bunsubscr...@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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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.comandroid-developers%2bunsubscr...@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: ninePatch bug?
On Wed, Dec 8, 2010 at 11:47 AM, 陈彧堃 chenyuku...@gmail.com wrote: my phone is milestone with resolution 854×480, did you notice there is sawtooth at the blue arrow on the right-bottom corner when you load in ninepatch? I didn't ... Looks just fine to me. -- 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: ninePatch bug?
08.12.2010 14:47, 陈彧堃 пишет: my phone is milestone with resolution854×480, did you notice there is sawtooth at the blue arrow on the right-bottom corner when you load in ninepatch? Are you putting the nine-patch into drawable-hdpi ? The sawtooth is in your source image. It shows in Photoshop or Windows Image Viewer, if you zoom in. Fix your source to get rid of sawtooth - Android isn't going to automatically make your images prettier :) -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: ninePatch bug?
08.12.2010 14:54, Daniel Drozdzewski пишет: On Wed, Dec 8, 2010 at 11:47 AM, 陈彧堃chenyuku...@gmail.com wrote: my phone is milestone with resolution 854×480, did you notice there is sawtooth at the blue arrow on the right-bottom corner when you load in ninepatch? I didn't ... Looks just fine to me. It's there alright. You've just got to zoom in to notice. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: ninePatch bug?
Thanks, but I don't think so. Actually I made two imageview, one is the source and the other is the destination, and align them together with the same size. They looks quite different. On Wed, Dec 8, 2010 at 8:29 PM, Kostya Vasilyev kmans...@gmail.com wrote: 08.12.2010 14:54, Daniel Drozdzewski пишет: On Wed, Dec 8, 2010 at 11:47 AM, 陈彧堃chenyuku...@gmail.com wrote: my phone is milestone with resolution 854×480, did you notice there is sawtooth at the blue arrow on the right-bottom corner when you load in ninepatch? I didn't ... Looks just fine to me. It's there alright. You've just got to zoom in to notice. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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.comandroid-developers%2bunsubscr...@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: ninePatch bug?
I use android 1.5, so there's no drawable-hdpi folder. Actually I made two imageview, one is the source and the other is the destination, and align them together with the same size. They looks quite different. On Wed, Dec 8, 2010 at 7:59 PM, Kostya Vasilyev kmans...@gmail.com wrote: 08.12.2010 14:47, 陈彧堃 пишет: my phone is milestone with resolution 854×480, did you notice there is sawtooth at the blue arrow on the right-bottom corner when you load in ninepatch? Are you putting the nine-patch into drawable-hdpi ? The sawtooth is in your source image. It shows in Photoshop or Windows Image Viewer, if you zoom in. Fix your source to get rid of sawtooth - Android isn't going to automatically make your images prettier :) -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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.comandroid-developers%2bunsubscr...@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: ninePatch bug?
08.12.2010 15:47, 陈彧堃 пишет: I use android 1.5, so there's no drawable-hdpi folder. There you go. The image is scaled at runtime - there is no native support for high-res screens in 1.5. Switch your project to build with Android 1.6, move the nine patch into drawable-hdpi (you can create the lower-res versions later). Also either add minSdk=4, or supports-screens to the manifest. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: ninePatch bug?
It really works, thanks very much. On Wed, Dec 8, 2010 at 9:04 PM, Kostya Vasilyev kmans...@gmail.com wrote: 08.12.2010 15:47, 陈彧堃 пишет: I use android 1.5, so there's no drawable-hdpi folder. There you go. The image is scaled at runtime - there is no native support for high-res screens in 1.5. Switch your project to build with Android 1.6, move the nine patch into drawable-hdpi (you can create the lower-res versions later). Also either add minSdk=4, or supports-screens to the manifest. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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.comandroid-developers%2bunsubscr...@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: ninePatch bug?
欢迎您 (hope I got this right) 08.12.2010 16:58, 陈 пишет: It really works, thanks very much. On Wed, Dec 8, 2010 at 9:04 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: 08.12.2010 15:47, 陈 пишет: I use android 1.5, so there's no drawable-hdpi folder. There you go. The image is scaled at runtime - there is no native support for high-res screens in 1.5. Switch your project to build with Android 1.6, move the nine patch into drawable-hdpi (you can create the lower-res versions later). Also either add minSdk=4, or supports-screens to the manifest. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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