如何在不同的模拟器皮肤上获得相同大小的启动器图标…(android)
看看下面给出的链接中的图 2.. http://developer.android .com/guide/practices/screens_support.html..
那里提到,该平台默认为应用程序提供密度独立性。(启动器图标以相同的物理尺寸显示,尽管屏幕尺寸、宽高比,并且密度不同。)
并显示了 3 个模拟器屏幕,即 WVGA 高密度(左)、HVGA 中密度(中)和 QVGA 低密度(右)...
我已经创建了这 3 个 avd 并进行了测试,但启动器图标在不同的模拟器中是不同的..任何人都知道为什么会这样以及我应该如何在这些模拟器上获得相同大小的启动器图标...
have a look at figure 2. in the link given below.. http://developer.android.com/guide/practices/screens_support.html..
there it is being mentioned that ,The platform provides density independence to applications by default.(launcher icons are displayed at the same physical sizes, although screen sizes, aspect ratios, and densities are different.)
and showed with 3 emulator screens namely WVGA high density (left), HVGA medium density (center), and QVGA low density (right)...
i have created these 3 avd's and tested but the launcher icons are different in different emulator..can any one knows why it so and how should i get same sized launcher icons on those emulators...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你应该参考这个:
http://developer.android.com/guide/practices/ui_guidelines/icon_design.html
you should refer this:
http://developer.android.com/guide/practices/ui_guidelines/icon_design.html
您的 res/ 文件夹中有 3 个不同的可绘制文件夹名称:drawable-mdpi/、drawable-hdpi、drawable-ldpi/,每个文件夹都有不同大小的图标。如果您希望每个模拟器中都有相同大小的图标,请在所有三个文件夹中放置相同大小的图标。
you have 3 different drawable folder name drawable-mdpi/,drawable-hdpi, drawable-ldpi/ in your res/ folder and each of them have different size icon. if you want same size icon in each emulator then put the same size icon in all three folders.
请记住,您的显示器具有固定的像素密度,而这些不同的设备将具有不同的像素密度。这意味着相同数量的像素在显示器上的物理尺寸与在 Android 设备上的物理尺寸不同(Android 设备的像素通常比显示器小得多)。
Keep in mind that your monitor is of a fixed pixel density, while these various devices will have differing pixel density. That means the same number of pixels will be a different physical size on your monitor than it will be on an Android device (which will typically have much smaller pixels than your monitor).