[android-developers] Home screen icon dimensions

2012-01-20 Thread bt
Hi,

I would like to display application icons in my app with the same
dimension as they are visible on the home screen.

Is there any way to get that information. I mean it would be fine if
there were an attribute or style I could use, for example:

ImageView layout_width=?android:attr/preferredIconWidth
layout_height=?android:attr/preferredIconHeight/

Thanks,
Tamas

-- 
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] Home screen icon dimensions

2012-01-20 Thread Mark Murphy
On Fri, Jan 20, 2012 at 6:29 AM, bt barta...@gmail.com wrote:
 I would like to display application icons in my app with the same
 dimension as they are visible on the home screen.

 Is there any way to get that information.

No, because each of the countless home screen implementations is
perfectly welcome to show icons in any dimension it pleases. If it
wants to show icons 16px square, 160px square, or 360px square, it can
do so.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 4.0 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