开发者

Android Marketplace icon

开发者 https://www.devze.com 2023-01-05 09:10 出处:网络
This is probably a dumb question but I can\'t find it anywhere... Which icon is used in your marketplace listing?Is it always the application android:icon=\"@drawable/icon\" setting from your manifest

This is probably a dumb question but I can't find it anywhere... Which icon is used in your marketplace listing? Is it always the application android:icon="@drawable/icon" setting from your manifest file or can you have a 开发者_JAVA百科launch icon different from your marketplace listing?


Android Market uses application icon, but you can have different launch icon if you assign another one to your default (starting) activity.

  • https://developer.android.com/guide/topics/manifest/application-element.html#icon
  • https://developer.android.com/guide/topics/manifest/activity-element.html#icon


I think an example will do:

// app-wide, incl. Android Market
    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        >
// launcher only
    <activity android:name=".activity.Launcher"
        android:label="@string/launcher_title"
        android:icon="@drawable/launcher_icon"
        >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
0

精彩评论

暂无评论...
验证码 换一张
取 消