【问题标题】:How use rounded icon on API 15如何在 API 15 上使用圆形图标
【发布时间】:2018-12-14 09:26:25
【问题描述】:

在我的安卓项目中:

在我的清单文件中:

<uses-sdk
            android:minSdkVersion="15"
            android:targetSdkVersion="28" />

<application
        android:name="my_app_name"
        android:allowBackup="false"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:logo="@drawable/l_icon"
        android:roundIcon="@drawable/ic_launcher"
        android:theme="@style/FacturaTheme" >

我无法构建项目。 我收到警告消息:

Attribute "roundIcon" is only used in API level 25 and higher (current min is 15)

我无法将 api 级别增加到 25。因为它要求使用 api 15。 如何使用圆形图标解决此问题?

【问题讨论】:

  • 你确定这不是警告吗?
  • 是的,这是警告
  • 这个项目是在 Eclipse 上编写的 - 你在开玩笑吧?
  • 那就赶紧迁移到android studio吧
  • 这个项目是在 Eclipse 上编写的 - 试图将其标记为滥用

标签: android android-icons


【解决方案1】:

您有两个解决方案: 将最小 sdk 更新为 25,因为 roundIcon 适用于 Nougat(API 25) 及更高版本或删除 roundIcon

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-08-06
    • 1970-01-01
    • 2018-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-09
    • 2019-10-10
    相关资源
    最近更新 更多