我創建了一個自定義AlertDialog,但自定義AlertDialog
它有一個默認的黑色邊框。我怎樣才能隱藏它? 我的佈局
道具 - match_parent,
風格 - @android:款式/ Theme.Translucent.NoTitleBar.Fullscreen
UPD
@Override
protected Dialog onCreateDialog(int id) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = getLayoutInflater();
View dialoglayout = inflater.inflate(R.layout.dialog_layout, (ViewGroup) getCurrentFocus());
switch (id) {
case IDD_RESULT:
builder.setView(dialoglayout);
return builder.create();
XML
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/dialog_layout_root"
style="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/dialog_bg"
android:orientation="vertical" >
</LinearLayout>
</LinearLayout>
發佈您用來創建它的代碼..這是不夠的。 – 2012-08-01 12:49:07