Xamarin에서 대화 상자 조각을 만들었습니다. 내 유일한 문제는이 조각에 회색 부분이있는 것입니다. 그리고 나는 회색 부분이 나타나는 원인을 알아낼 수 없습니다. 너희들은 아마도 가능한 원인을 알고 있니?Xamarin - 대화 상자 상단에 여분의 공간을 제거하는 방법
내가이 대화 상자 표시하려면이 코드를 사용하고 있습니다 : 기본적으로
<?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>
이 코드를 시도했지만 작동하지 않았습니다. 이 코드를 붙여 넣어 문제를 해결했습니다. Dialog.Window.RequestFeature (WindowFeatures.NoTitle); –