значок приложения для Android белый круг - PullRequest
0 голосов
/ 26 октября 2019

Я сделал значок для своего приложения и протестировал его на каком-то старом телефоне Samsung Galaxy, и он показал, что значок имеет приятную квадратную форму.

Почему-то на более новом телефоне + наЭмулятор показывает белый круг следующим образом:

enter image description here

Мой файл манифеста выглядит следующим образом:

<application
    android:allowBackup="false"
    android:icon="@mipmap/ic_launcher_custom"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_custom_foreground"
    android:supportsRtl="false"
    android:theme="@style/CustomActivityTheme">

, и моя карта отображается:

enter image description here

Как мне решить эту проблему, пожалуйста?

Спасибо

Ответы [ 2 ]

1 голос
/ 04 ноября 2019

Манифест:

<application
        android:icon="@mipmap/ic_launcher"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher_custom"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_custom_foreground"
        android:supportsRtl="false"
        android:theme="@style/CustomActivityTheme">

Снимок экрана:

enter image description here

mipmap-anydpi-v26

enter image description here

После значка @drawwable/invitation найдите для этой папки

res / drawable-xhdpi

enter image description here

Значок @mipmap/ic_invitation_maker для этой папки находится

mipmap-hdpi

enter image description here

0 голосов
/ 27 октября 2019

Перемещение содержимого mipmap из проектазатем создайте значки приложений в Asset studio (щелкните правой кнопкой мыши на панели проекта> new> Image Asset)и установите значки в манифесте так:

  <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:roundIcon="@mipmap/ic_launcher_round"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
...