Which resource structure to use for both Android tablets and mobiles?

断了今生、忘了曾经 提交于 2019-12-05 19:33:53

you can specify an api level for the folders as will. For the app I just developed I had a folder called drawable-hdpi-v9 for all the new galaxy 10.1 icons.

So.. If you wish to have different icons or images for android version 2.3 and earlier versions put the icons for Android 2.3 and later in a resource folder with -v9 appended to the folder name. Example: drawable-hdpi-v9

I agree with you! I'm currently using drawable-large-mdpi for tablets and drawable-hdpi for phones.

At the moment you have the following alternatives:

http://android-developers.blogspot.com/2011/09/preparing-for-handsets.html

http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html

http://developer.android.com/guide/market/publishing/multiple-apks.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!