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万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章