Dialog去掉白邊和背景

LayoutInflater layout = LayoutInflater.from(ActivityOther.this);
 View view1 = layout.inflate(R.layout.view_cardnum, null);

 

Dialog cardDLG = new AlertDialog.Builder(ActivityOther.this).create();
    cardDLG.show();
    cardDLG.getWindow().setContentView(view1);

發佈了91 篇原創文章 · 獲贊 4 · 訪問量 17萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章