アクションバーが非表示になっているアクティビティがあります。ボタンをクリックすると表示されますが、レイアウトアクティビティをスクロールしたくない場合は、バーがオーバーラップする必要があります。 どうすればいいですか?Android:アクションバーオーバーラップのアクティビティレイアウト
私は
actionbar.hide();
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
を使用して、それが見えるようにバー非表示にするには:
actionbar.show();
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
を私のレイアウトは、事前にちょうど
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<MyPager
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<MyPager>
</RelativeLayout>
おかげです。
いくつかのコードやレイアウトを貼り付けると、この説明に基づいて何かを言うのは難しいです。 – Egor