ダイアログボックスを開いてほとんどの画面をカバーしようとしています(つまり、それでも丸みのある効果がありますが、背後のコンテンツはカバーされます)
塗りつぶしの親を試してみましたが、ラップコンテンツのように動作し続けます
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_centerHorizontal="true"
>
<LinearLayout
android:gravity="center_horizontal"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<SurfaceView android:id="@+id/surface"
android:layout_width="400px"
android:layout_height="200px"
android:layout_centerHorizontal="true">
</SurfaceView>
<Button android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Ok, Let me play !!!" />
</LinearLayout>
</LinearLayout>
ここで解決策を試しました
ダイアログスタイルのアクティビティウィンドウを画面いっぱいに表示するにはどうすればよいですか?
dialog.getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
そしてそれは私が望むことをします
だから今私は私のxmlで何が摩耗しているのか知りたいです(私はそれを助けることができれば私のコードではなくxml内にすべてのレイアウト動作を入れようとします^^)