facebook twitter hatena line email

「Android/Icon/round」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
 
(同じ利用者による、間の1版が非表示)
行1: 行1:
 +
丸いアイコン追加
 +
 
AndroidManifest.xml
 
AndroidManifest.xml
 
<pre>
 
<pre>
行12: 行14:
 
* app/src/main/res/mipmap-hdpi/ic_launcher.png
 
* app/src/main/res/mipmap-hdpi/ic_launcher.png
 
* app/src/main/res/mipmap-hdpi/ic_launcher_round.png
 
* app/src/main/res/mipmap-hdpi/ic_launcher_round.png
 +
 +
他mdpi,xhdpi,xxhdpi,xxxhdpiを作る
  
 
xml追加
 
xml追加

2019年10月8日 (火) 11:52時点における最新版

丸いアイコン追加

AndroidManifest.xml

<application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"

android:roundIconを追加

画像追加

  • app/src/main/res/mipmap-hdpi/ic_launcher.png
  • app/src/main/res/mipmap-hdpi/ic_launcher_round.png

他mdpi,xhdpi,xxhdpi,xxxhdpiを作る

xml追加

  • app/src/main/res/drawable/ic_launcher_background.xml
  • app/src/main/res/drawable-v24/ic_launcher_foreground.xml
  • app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
  • app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml