내 응용 프로그램에서 사용자 지정 대화 상자를 사용하고 있습니다. .my 대화 상자가 둥근 사각형 경계선을 가지고 있으며 제거 할 수 없습니다. 테두리를 제거하는 스타일을 설정하는 데 도움이됩니다. 감사합니다사용자 지정 대화 상자에서 경고 대화 상자 테두리 제거
public class myDialog extends Dialog
{
private String mMessage = "";
public myDialog(Context context, String message)
{
super(context);
requestWindowFeature(Window.FEATURE_NO_TITLE);
View v = getLayoutInflater().inflate(R.layout.dialog, null);
mMessage = message;
setCancelable(false);
setCanceledOnTouchOutside(false);
setContentView(v);
getWindow().setLayout(300,150);
getWindow().setBackgroundDrawableResource(R.);
}
}
내 대화 cutom 레이아웃 :
<?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="@drawable/dialog"
>
</LinearLayout>