How to change the icon and label of an app once it is installed?

前端 未结 3 983
执笔经年
执笔经年 2020-12-19 17:21

I am trying to change the icon and label of my app once it is installed.

In the manifest, i put this code :



        
相关标签:
3条回答
  • 2020-12-19 17:52

    I think I may be able to help you. Under the manifest tag there is this:

    <application
        android:allowBackup="true"
        android:icon="@drawable/launcher_icon"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" />
    

    You can edit these and change it to the icon that you saved in your drawables for your launcher and you can also change them name to a different string.

    0 讨论(0)
  • 2020-12-19 17:57

    The code posted in the question is apparently the correct way to do it. There is an issue with Android 4.1 and 4.2. Find more details here:

    https://code.google.com/p/android/issues/detail?id=54546

    0 讨论(0)
  • 2020-12-19 18:00

    To change the name of your application right click the application folder in the package explorer, look for "Refactor" and press rename.

    To change the icon of your application you have to change all of its variations inside the drawable folders and also the "ic_launcher-web.png" inside your res folder.

    0 讨论(0)
提交回复
热议问题