alertdialog使用方法 怎么設(shè)置AlertDialog窗口的大?。?/h1>
怎么設(shè)置AlertDialog窗口的大?。?)如何更改alertdialog窗口的大?。篴lertdialog=New警報(bào)對(duì)話框.生成器(此).create()對(duì)話框.show() WindowMan
怎么設(shè)置AlertDialog窗口的大小?
1)如何更改alertdialog窗口的大?。?/p>
alertdialog=New警報(bào)對(duì)話框.生成器(此).create()對(duì)話框.show()
WindowManager.LayoutParams參數(shù)=對(duì)話框.getWindow().getAttributes()參數(shù)寬度= 200
參數(shù)高度= 200
對(duì)話框.getWindow(). Setattributes(params)
2)刪除邊框警報(bào)對(duì)話框.setView(視圖,0,0,0,0)