0

私はAndroidアプリでwebviewを持っています。私は同じwebviewの他のページに移動します。 F4を押すと、Asus Chromebookの全画面ボタンが表示されます。 webviewがリロードされ、最初のページに戻ります。chromebookのWebview refreshを最大化/最小化

私はマニフェストで私の活動に、

<activity android:configChanges="orientation|screenSize"> 

を追加しようとしています。しかし、まだ問題は残っている。

Webviewは断片の中にあります。 また、私はWebViewの状態を保持するために、私のフラグメントで

setRetainInstance(true) 

を持っています。

Chromebookのウィンドウを最大化して最小化するのは、通常のタブレットの向きの変更と同じではないと思います。私はオリエンテーションを肖像画に固定し、錠剤でそれをテストしたので、同じ動作は見られません。

答えて

0

ので

These apps are treated as unsafe to be resized. If possible, these apps launch by default to a phone-sized portrait window; otherwise they launch into a phone-sized landscape window. 
The user can press F4 to enter or leave full screen mode which fully restarts the app—killing and starting the app anew—and keeps it from then on in full screen portrait-sized (or rotated into landscape). 

が故に、それは常に殺され、私のアプリを再起動し、Androidデベロッパーのウェブサイトから私が作成したAndroid 6.0でのChromebookでテストしていたよう 。ルックスと6.0のため。

関連する問題