大家好,如何自定義一個可以彈出除狀態欄之外的全屏彈窗,material-dialog或其它的框架也可以,主要是不想再起一個activity。
uj5u.com熱心網友回復:
getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/172742.html
標籤:Android
上一篇:【小程式遇到的一個問題】
