0

I am looking at these Android instructions: http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size

and I made the 4 image sizes, but how do I specify them in the Android Manifest file? And where do I place the images within the code base?

So far I have this

  <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" 
                android:theme="@style/CustomTheme" >

But not sure how to specify the specific sizes of the launches icons and when they need to show up.

Thanks!

4

3 に答える 3

3

You don't need to write anything on manifest file. You need to put images on related drawable folders like:

res\drawable-hdpi\ic_launcher.png 
res\drawable-mdpi\ic_launcher.png  
res\drawable-ldpi\ic_launcher.png 
res\drawable-xhdpi\ic_launcher.png 
于 2012-04-21T17:16:30.253 に答える
1

You do not have to specify it in Manifest File, place them in drawable-hdpi, drawable-mdpi and drawable-ldpi folders depending upon the resolution, you can create one more folder drawable-xhdpi to support new High density screens like those like Google Nexus

于 2012-04-21T17:17:36.663 に答える
1

You have to place images in folder res/drawable-hdpi, res/drawable-ldpi, res/drawable-mdpi and change the name "icon" to your_name in the below code in Android Manifest.

 <application android:icon="@drawable/icon" android:label="@string/app_name">
于 2012-04-21T17:17:53.563 に答える