【问题标题】:How to change the ic_launcher_round.png folder content?如何更改 ic_launcher_round.png 文件夹内容?
【发布时间】:2018-02-05 08:24:21
【问题描述】:

我在更改 Android 应用的图标时遇到了困难。我已按照说明进行:

1.Right click on the project
2.Select New -> Image Asset
3.Select 'Asset Type' as Image
4.Select Path of and .png image
5.Optional: padding, trimming etc.
6.Next and Finish

这改变了minmap/ic_launcher.png 内容中的图标,但是,这不会改变minmap/ic_launcher_round.png 文件夹的内容。这样一来,如果 Android 系统配置为显示圆形图标,则图标将显示在此文件夹中:minmap/ic_launcher_round.png。但我找不到更改该特定文件夹内容的方法。

我尝试在路径中选择一个圆形的图像,但还是不行。

如果我将我的 Android 手机设置为将应用启动器图标显示为方形,我会看到所需的图标,但是,如果将其更改为圆形,则我看不到所需的图标。

请指导如何更改圆形ic_launchers。

【问题讨论】:

  • 您是否在清单@dhssa's 中包含圆形图标?
  • 作为一种解决方法,您可以手动将名称从 ic_launcher 更改为 ic_launcher_round,然后按下一步并完成。
  • 我已在 Manifest 文件中包含这一轮

标签: android android-drawable android-image android-icons


【解决方案1】:

最新的Android Studio为你生成圆形图标:右键res文件夹,选择Image Asset

请参阅https://dev.to/_s_farias/how-to-create-adaptive-icons-for-android-using-android-studio-459h 了解更详细的演练(@Guillaume Raymond 提供)。

【讨论】:

【解决方案2】:

您可以尝试继续AnroidManifest.xml 并更改路径

android:roundIcon="@mipmap/ic_launcher_round" 

android:roundIcon="@mipmap/ic_launcher"

【讨论】:

    【解决方案3】:

    使用 25 api 编译并使用“仅限旧版”

    【讨论】:

      猜你喜欢
      • 2021-08-27
      • 1970-01-01
      • 2011-04-08
      • 2014-05-11
      • 1970-01-01
      • 2020-07-04
      • 2012-09-22
      • 2010-11-04
      • 1970-01-01
      相关资源
      最近更新 更多