[英]How to make an icon for Android Activity?
I can't find anywhere how to get my icon into my activity. 我在任何地方都找不到如何将我的图标添加到活动中的方法。 I followed the guidelines to make all the different resolutions, now what?
我遵循了指导方针以做出所有不同的决议,现在该怎么办?
Make icons of the appropriate dimensions and place in these locations 制作合适尺寸的图标并放置在这些位置
72 x 72px png in res/drawable-hdpi res / drawable-hdpi中的72 x 72px png
48 x 48px png in res/drawable-mdpi res / drawable-mdpi中为48 x 48px png
36 x 36px png in res/drawable-ldpi res / drawable-ldpi中为36 x 36px png
Make sure they all have the same name, in the example below all would be called ic_logo.png. 确保它们都具有相同的名称,在下面的示例中,所有这些都将称为ic_logo.png。
Now edit AndroidManifest.xml to point to your icon. 现在,编辑AndroidManifest.xml以指向您的图标。
<application android:icon="@drawable/ic_logo" android:label="@string/app_name" android:theme="@android:style/Theme.Holo">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.