Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- MSSQL
- #splash
- php
- 초급개발자
- SQL
- JavaScript
- dump
- 자동증가
- egovframework
- inteliJ
- 웹접근성
- url
- 네이버지도 API
- date
- #안드로이드
- gd
- 웹표준
- 전자정부프레임워크
- PHPStorm
- [ASP]
- FullCalendar
- Import
- jQuery
- #하이브리드앱
- 워터마크 썸네일
- 나프다
- MySQL
- 참고사이트
- IE이슈
- select box
Archives
- Today
- Total
개발노트
[Android] 스플래쉬 화면 구성하기 본문
하기 코르도바 번역문서 만으론 스플래쉬 구성이 되질 않아서 몇가지 추가 첨언한다.
우선
cordova plugin add cordova-plugin-splashscreen
으로 플러그인을 설치해주고
config.xml은 프로젝트 최상위 (platforms 하위의 config.xml이 아니다) 에 작성하며
src는 프로젝트의 루트경로 (www 나 platform이 아니다) 에 폴더및 파일을 만들고 그 경로를 써줘야 한다.
var onDeviceReady = function() { navigator.splashscreen.hide(); };
CLI에서 시작 화면을 구성
최상위 수준에서 config.xml
파일 (아니라 하나에 platforms
), 여기에 지정 된 것과 같은 구성 요소를 추가 합니다.
예제 구성
"Src" 특성의 값은 프로젝트 디렉터리를 기준으로 그리고 www 디렉토리를 주의 하십시오. 원하는 소스 이미지 이름을 지정할 수 있습니다. 응용 프로그램에서 내부 이름은 코르도바에 의해 결정 됩니다.
<platform name="android">
<!-- you can use any density that exists in the Android project -->
<splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi"/>
<splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi"/>
<splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi"/>
<splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi"/>
<splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi"/>
<splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi"/>
<splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi"/>
<splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi"/>
</platform>
<platform name="ios">
<!-- images are determined by width and height. The following are supported -->
<splash src="res/screen/ios/Default~iphone.png" width="320" height="480"/>
<splash src="res/screen/ios/Default@2x~iphone.png" width="640" height="960"/>
<splash src="res/screen/ios/Default-Portrait~ipad.png" width="768" height="1024"/>
<splash src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
<splash src="res/screen/ios/Default-Landscape~ipad.png" width="1024" height="768"/>
<splash src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
<splash src="res/screen/ios/Default-568h@2x~iphone.png" width="640" height="1136"/>
<splash src="res/screen/ios/Default-667h.png" width="750" height="1334"/>
<splash src="res/screen/ios/Default-736h.png" width="1242" height="2208"/>
<splash src="res/screen/ios/Default-Landscape-736h.png" width="2208" height="1242"/>
</platform>
<platform name="wp8">
<!-- images are determined by width and height. The following are supported -->
<splash src="res/screen/wp8/SplashScreenImage.jpg" width="768" height="1280"/>
</platform>
<platform name="windows8">
<!-- images are determined by width and height. The following are supported -->
<splash src="res/screen/windows8/splashscreen.png" width="620" height="300"/>
</platform>
<platform name="blackberry10">
<!-- Add a rim:splash element for each resolution and locale you wish -->
<!-- http://developer.blackberry.com/html5/documentation/rim_splash_element.html -->
<rim:splash src="res/screen/windows8/splashscreen.png"/>
</platform>
<preference name="SplashScreenDelay" value="10000" />
지원 되는 플랫폼
지금 현재 (코르도바 3.5.0 7 월 2014) 다음 플랫폼 지원 시작 화면.
android
ios
wp8
windows8
blackberry10
Splashscreen 플러그인
또한 프로그래밍 방식으로 표시 하 고 응용 프로그램 실행 https://github.com/apache/cordova-plugin-splashscreen 동안 시작 화면을 숨기는 데 사용할 수 있는 특별 한 스플래시 화면 플러그인을 제공 하는 아파치 코르도바
'IT' 카테고리의 다른 글
초급 개발자가 꼭 봐둬야 할 강의 일람 (0) | 2016.07.15 |
---|
Comments