2

fullscreenここに私の問題があります:フラグを使用せずにアンドロイド通知バーを非表示にすることは可能ですか? adjustResizeソフトキーボードが表示されているときにアプリが必要ですが、アプリfullscreenはサイズ変更を無視します(私の知る限り)。

このフラグなしでアプリを全画面表示にする方法について誰か考えがありますか?

フルスクリーン フラグの問題は次のとおりです。重要なものをすべて表示しようとするだけですが、アプリのサイズを変更する必要があります。

ここに画像の説明を入力

ここに画像の説明を入力

およびxml:

<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<EditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_alignParentLeft="true"
    android:text="EditText1"/>

<EditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:text="EditText2" />

</RelativeLayout>

要約:EditTextsアプリのサイズが変更され、新しい寸法が再描画された後、両方が表示されることを期待していました

4

3 に答える 3

0

これは次のことに役立ちます。

getWindow().addFlags( WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN );
getWindow().addFlags( WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS );

これを の先頭に追加できますonCreate()

追加のコメントは、この回答にあります: https://stackoverflow.com/a/10952394/1065190

于 2012-11-06T15:46:00.650 に答える
0

うーん、フルスクリーンもリサイズに対応していると思いますが、

マニフェストでこのようにすることができます

    <activity
        android:name=".MainActivity"
        android:label="@string/title_activity_main" 
    android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" 
    android:windowSoftInputMode="stateHidden|adjustResize"
    android:screenOrientation="portrait" >

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

ここに画像の説明を入力

ここに画像の説明を入力

于 2012-11-06T08:23:44.410 に答える
0

これは Android の既知のバグであり、修正されていません。ここで回避策を試してください。

LEOのすべての功績

于 2012-11-06T15:41:21.143 に答える