LoginSignup
4
4

More than 5 years have passed since last update.

Meteor モバイルアプリ(iOS/Android)のスプラッシュ画像(起動画面画像)を変更する方法

Last updated at Posted at 2015-05-05

Meteor モバイルアプリのスプラッシュ画像を変更する

Meteor のモバイルアプリ(iOS/Android)起動時に表示されるスプラッシュ画像を変更するには、Meteor プロジェクトディレクトリ直下にある mobile-config.js に以下の記述を追加します。

mobile-config.js
App.launchScreens({
  // iOS
  'iphone'            : 'resources/splash/splash-320x480.png',
  'iphone_2x'         : 'resources/splash/splash-320x480@2x.png',  // 640x960
  'iphone5'           : 'resources/splash/splash-320x568@2x.png',  // 640x1136
  'iphone6'           : 'resources/splash/splash-375x667@2x.png',  // 750x1334
  'iphone6p_portrait' : 'resources/splash/splash-414x736@3x.png',  // 1242x2208
  'iphone6p_landscape': 'resources/splash/splash-736x414@3x.png',  // 2208x1242
  'ipad_portrait'     : 'resources/splash/splash-768x1024.png',  
  'ipad_portrait_2x'  : 'resources/splash/splash-768x1024@2x.png', // 1536x2048
  'ipad_landscape'    : 'resources/splash/splash-1024x768.png',
  'ipad_landscape_2x' : 'resources/splash/splash-1024x768@2x.png', // 2048x1536

  // Android (9-patch PNG)
  'android_ldpi_portrait'  : 'resources/splash/splash-200x320.9.png',
  'android_ldpi_landscape' : 'resources/splash/splash-320x200.9.png',
  'android_mdpi_portrait'  : 'resources/splash/splash-320x480.9.png',
  'android_mdpi_landscape' : 'resources/splash/splash-480x320.9.png',
  'android_hdpi_portrait'  : 'resources/splash/splash-480x800.9.png',
  'android_hdpi_landscape' : 'resources/splash/splash-800x480.9.png',
  'android_xhdpi_portrait' : 'resources/splash/splash-720x1280.9.png',
  'android_xhdpi_landscape': 'resources/splash/splash-1280x720.9.png'
});

Android のスプラッシュ画像は 9-patch PNG(*.9.png) という特殊な PNG 画像になっています。
9-patch PNG の詳細については以下のサイトを参考にしてください。

参考

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4