Adobe Animate CC Fullscreen 全画面表示させる設定方法

最近のスマホは縦に長い。

なかでもAndroidは縦長でもいろいろな縦長があります。


Adobe Animate CC でアプリを作れますが、

縦長スマホは、普通に作ってもフルスクリーンで表示されません。

Adobe Animate CC はふるーーーいActionScript3という言語を使います。

ググっても日本語で解説されているのは絶滅寸前でしょう。

どこにも書いてないので書きます。

プログラムに詳しい方は一部しか解説しなくても理解できますが、

プログラムを知らない人には手順を全部書いてほしいと思いますので、

詳しく書きます。


testという名前でflaファイルを作成したとします。


①AIR for Android 設定する

・【フルスクリーンモードにする】をチェック。

↑これでフルスクリーンになるじゃんと思うじゃん。

 なりません。(16:9ならこれだけでOKです)

 画面上にある電波・時計とか、下のボームボタンを非表示になるだけ。


②一度【OK】ボタンを押してAIR for Android 設定を閉じる。


③flaファイルと同じ場所にtest-app.xmlファイルができます。


④test-app.xmlファイルを開く。

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<application xmlns="http://ns.adobe.com/air/application/32.0">
<id>test</id>
<versionNumber>1.0.0</versionNumber>
<filename>test</filename>
<description></description>
<!-- To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
-->
<name>test</name>
<!-- To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<copyright></copyright>
<initialWindow>
<content>test.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<autoOrients>false</autoOrients>
<aspectRatio>portrait</aspectRatio>
<renderMode>cpu</renderMode>
</initialWindow>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<icon></icon>
<android>
<manifestAdditions><![CDATA[<manifest></manifest>]]></manifestAdditions>
</android>
<versionLabel></versionLabel>
</application>


⑤上の太字部分を次のように変えて、保存して閉じる。

<manifestAdditions>
<![CDATA[
<manifest android:installLocation="auto">

<!-- other tags here -->
<application android:hardwareAccelerated="true" android:resizeableActivity="true">
<!-- this lets you support devices larger than 16:9 ratio -->
<meta-data android:name="android.max_aspect" android:value="2.16" />
</application>
</manifest>
]]>
</manifestAdditions>


⑥AIR for Android 設定する

権限タブの【アプリケーション記述ファイルへの権限およびマニフェストの追加を手動で管理】にチェック。そしてパブリッシュ。

(チェックしないでパブリッシュしてしまうと、xmlがリセットされますので、また書き換えてください。)


⑦これでだいたいの縦長スマホはフルスクリーンなるが、

notchがある縦長スマホは、真のフルスクリーンではありません。

(画面上のノッチ部分が黒いバーになっています。)


⑧ノッチ部分も表示したい方はもう一工夫必要。

ここから先は

454字

¥ 500

この記事が気に入ったらサポートをしてみませんか?