Ich habe ein Dialogfeld Fragment in Xamarin erstellt. Mein einziges Problem ist, dass dieses Fragment einen grauen Teil darauf zeigt. Und ich kann nicht herausfinden, was den grauen Teil verursacht. Kennst du vielleicht die mögliche Ursache?Xamarin - Wie kann ich zusätzlichen Platz am oberen Rand des Dialogfragments entfernen
ich diesen Code über diesen Dialog anzuzeigen:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
android:focusableInTouchMode="true">
<View
android:id="@+id/makedialogfullscreenChooseSoundTrack"
android:layout_width="wrap_content"
android:layout_height="1dp"
android:layout_gravity="fill_horizontal"
/>
<RelativeLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#e1effa" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="Choose Sound Track"
android:textSize="20dp"
android:textColor="#673ab7"
android:padding="15dp"
android:layout_marginRight="25dp"
/>
<ImageView
android:id="@+id/imgCloseSoundDialog"
android:layout_width="33dp"
android:layout_height="33dp"
android:src="@drawable/close_icon"
android:layout_marginBottom="15.5dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:layout_centerVertical="true" />
</RelativeLayout>
<LinearLayout
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_width="wrap_content" >
<GridView
android:id="@+id/gvSoundFiles"
android:layout_width="fill_parent"
android:layout_height="400dp"
android:gravity="center"
android:verticalSpacing="5dp"
android:drawSelectorOnTop="true"
android:stretchMode="columnWidth" />
</LinearLayout>
</LinearLayout>
Ich habe diesen Code versucht, und es hat nicht funktioniert. Ich löste das Problem, indem ich diesen Code einfügte: Dialog.Window.RequestFeature (WindowFeatures.NoTitle); –