facebook twitter hatena line email

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

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「AndroidManifest.xml <pre> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name"...」)
 
 
(同じ利用者による、間の5版が非表示)
行1: 行1:
 +
丸いアイコン追加
 +
 
AndroidManifest.xml
 
AndroidManifest.xml
 
<pre>
 
<pre>
    <application
+
<application
 
         android:allowBackup="true"
 
         android:allowBackup="true"
 
         android:icon="@mipmap/ic_launcher"
 
         android:icon="@mipmap/ic_launcher"
行9: 行11:
 
android:roundIconを追加
 
android:roundIconを追加
  
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.png
app/src/main/res/drawable/ic_launcher_background.xml
+
* app/src/main/res/mipmap-hdpi/ic_launcher_round.png
 +
 
 +
他mdpi,xhdpi,xxhdpi,xxxhdpiを作る
  
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.png
+
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

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