Re: [android-developers] Re: What changed in Gingerbread as far as the app widgets?
29.12.2010 5:23, Mark Murphy пишет: On Tue, Dec 28, 2010 at 9:15 PM, Zsolt Vasvarizvasv...@gmail.com wrote: Sorry, what's your point? Those docs haven't been updated since 1.5 and they assume a 320x480 screen. I am fairly certain that document is newer than 1.5, but, never mind. I have an Android 2.3 device. I have tried some third-party app widgets (Ambling, Remember the Milk, Extended Controls). None appear to have 11px cropped off the bottom. Hence, the problem you are experiencing may solely be with the 2.3 emulator. It wouldn't be the first reported problem. My observations match Zsolt's (not regarding 2.3, but rather widget sizing in general). The sizes and artwork templates in the guidelines only work for HVGA devices and for high-res devices in portrait mode (because portrait screen width scales the same way as the device's dpi value). On high-res devices in landscape mode, the templates don't line up (esp. when you consider that 800 and 854 pixel wide hdpi screens use equal scaling but different home screen layouts). On QVGA the templates fail for both portrait and landscape modes. For anyone interested: take standard 4x1 landscape widget width per the above document, 424dp. Scale that to pixels at ldpi resolution - you get 318. The screen is 320 pixels wide, but the app drawer handle takes more than 2 pixels, so widgets actually have smaller width than in the docs. What would really help, IMHO, is if there was a special dimension unit for widgets: one home screen cell. Then one could specify widget layout size as, e.g., 2wc by 1wc (widget cell) and use margins expressed in dp to add space between widgets. -- 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
[android-developers] Re: What changed in Gingerbread as far as the app widgets?
For now, I fixed my widget on 2.3 by going from a monolithic 322px high background drawable to smaller drawables. Of course, I shouldn't have to do that, but whatever... If you place any widgets on 2.3 and compare it to 2.2, you can see that they are spaced differently. On 2.3, they are a lot closer to each other vertically and there is more (unused) room above the phone/ app/browser standard buttons. So it appears that 2.3 has shrunk the physical height of one widget cell. On Dec 29, 4:36 pm, Kostya Vasilyev kmans...@gmail.com wrote: 29.12.2010 5:23, Mark Murphy пишет: On Tue, Dec 28, 2010 at 9:15 PM, Zsolt Vasvarizvasv...@gmail.com wrote: Sorry, what's your point? Those docs haven't been updated since 1.5 and they assume a 320x480 screen. I am fairly certain that document is newer than 1.5, but, never mind. I have an Android 2.3 device. I have tried some third-party app widgets (Ambling, Remember the Milk, Extended Controls). None appear to have 11px cropped off the bottom. Hence, the problem you are experiencing may solely be with the 2.3 emulator. It wouldn't be the first reported problem. My observations match Zsolt's (not regarding 2.3, but rather widget sizing in general). The sizes and artwork templates in the guidelines only work for HVGA devices and for high-res devices in portrait mode (because portrait screen width scales the same way as the device's dpi value). On high-res devices in landscape mode, the templates don't line up (esp. when you consider that 800 and 854 pixel wide hdpi screens use equal scaling but different home screen layouts). On QVGA the templates fail for both portrait and landscape modes. For anyone interested: take standard 4x1 landscape widget width per the above document, 424dp. Scale that to pixels at ldpi resolution - you get 318. The screen is 320 pixels wide, but the app drawer handle takes more than 2 pixels, so widgets actually have smaller width than in the docs. What would really help, IMHO, is if there was a special dimension unit for widgets: one home screen cell. Then one could specify widget layout size as, e.g., 2wc by 1wc (widget cell) and use margins expressed in dp to add space between widgets. -- 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
[android-developers] Re: What changed in Gingerbread as far as the app widgets?
Re the menu icon size changing, that's precisely why the dev guide recommends pulling whatever stock icons you use and including them in your apk. This makes them immune to changes in the framework. Jonathan On Dec 28, 3:16 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Trying to update my app to 2.3, noticed a few things: - The menu icons seem to have gotten smaller in 2.3. Now my custom icons look too large. Arrrg. -- The same exact code on 2.3 produces an app widget that's cut off on the bottom on 2.3 while it's fully visible in 2.2. What changed between these releases we should know about? I cannot find anything in the change log -- 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: What changed in Gingerbread as far as the app widgets?
Correct, which I have done this, but I had to create a few icons of my own. They are now too big. On Dec 29, 9:17 am, Jonathan Foley jonefo...@gmail.com wrote: Re the menu icon size changing, that's precisely why the dev guide recommends pulling whatever stock icons you use and including them in your apk. This makes them immune to changes in the framework. Jonathan On Dec 28, 3:16 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Trying to update my app to 2.3, noticed a few things: - The menu icons seem to have gotten smaller in 2.3. Now my custom icons look too large. Arrrg. -- The same exact code on 2.3 produces an app widget that's cut off on the bottom on 2.3 while it's fully visible in 2.2. What changed between these releases we should know about? I cannot find anything in the change log- Hide quoted text - - Show quoted text - -- 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: What changed in Gingerbread as far as the app widgets?
-- The same exact code on 2.3 produces an app widget that's cut off on the bottom on 2.3 while it's fully visible in 2.2. What changed between these releases we should know about? I cannot find anything in the change log I did some troubleshooting for Google here: A 3x2 widgets size went from 360x322 in API Level 8 pixels to 360x311 in API Level 9. I have my widget defined (as per the doc) as 220dp x 146dp. So, at least for widgets, 146dp/px != 146dp/px Note that I ran these test in 2 emulator sessions set to 480x480 HDPI, as I don't have a Android 2.3 phone. It's not surprising that people talk about Android fragmentation when there are all kinds of undocumented changes from one API level to the next. It's hard to plan if you don't know what changed. -- 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: What changed in Gingerbread as far as the app widgets?
On Tue, Dec 28, 2010 at 9:01 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I did some troubleshooting for Google here: A 3x2 widgets size went from 360x322 in API Level 8 pixels to 360x311 in API Level 9. I have my widget defined (as per the doc) as 220dp x 146dp. So, at least for widgets, 146dp/px != 146dp/px Note that I ran these test in 2 emulator sessions set to 480x480 HDPI, as I don't have a Android 2.3 phone. It's not surprising that people talk about Android fragmentation when there are all kinds of undocumented changes from one API level to the next. It's hard to plan if you don't know what changed. Here are the app widget design guidelines: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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: What changed in Gingerbread as far as the app widgets?
Ah, I see what you are saying. Though, I don't really agree with that. If I want my app to look stock on both platforms, I need to pull icons from both and put them into drawable-vx folders. I am not against progress andI, let's say Honeycomb gets a drastic UI redesign, I can see having to redesign my graphics. But, the UI update in Gingerbread compared to FroYo is very small -- was it really neccessary to make the icons just a bit smaller, when the larger ones look just fine? Was it neccessary to desaturate the highlight orange so now the orange I used in my own graphics no longer match? In a single swoop, a whole bunch of apps just got uglified on Gingerbread. On Dec 29, 9:17 am, Jonathan Foley jonefo...@gmail.com wrote: Re the menu icon size changing, that's precisely why the dev guide recommends pulling whatever stock icons you use and including them in your apk. This makes them immune to changes in the framework. Jonathan On Dec 28, 3:16 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Trying to update my app to 2.3, noticed a few things: - The menu icons seem to have gotten smaller in 2.3. Now my custom icons look too large. Arrrg. -- The same exact code on 2.3 produces an app widget that's cut off on the bottom on 2.3 while it's fully visible in 2.2. What changed between these releases we should know about? I cannot find anything in the change log- Hide quoted text - - Show quoted text - -- 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: What changed in Gingerbread as far as the app widgets?
Sorry, what's your point? Those docs haven't been updated since 1.5 and they assume a 320x480 screen. On Dec 29, 10:09 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Dec 28, 2010 at 9:01 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I did some troubleshooting for Google here: A 3x2 widgets size went from 360x322 in API Level 8 pixels to 360x311 in API Level 9. I have my widget defined (as per the doc) as 220dp x 146dp. So, at least for widgets, 146dp/px != 146dp/px Note that I ran these test in 2 emulator sessions set to 480x480 HDPI, as I don't have a Android 2.3 phone. It's not surprising that people talk about Android fragmentation when there are all kinds of undocumented changes from one API level to the next. It's hard to plan if you don't know what changed. Here are the app widget design guidelines: http://developer.android.com/guide/practices/ui_guidelines/widget_des... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming Books:http://commonsware.com/books -- 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: What changed in Gingerbread as far as the app widgets?
On Tue, Dec 28, 2010 at 9:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Sorry, what's your point? Those docs haven't been updated since 1.5 and they assume a 320x480 screen. I am fairly certain that document is newer than 1.5, but, never mind. I have an Android 2.3 device. I have tried some third-party app widgets (Ambling, Remember the Milk, Extended Controls). None appear to have 11px cropped off the bottom. Hence, the problem you are experiencing may solely be with the 2.3 emulator. It wouldn't be the first reported problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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