dialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);设置窗体背景透dialog.getWindow().setGravity(Gravity.BOTTOM);设置出现的位置 设置当前窗体的大小 dialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent); WindowManager.LayoutParams attributes = giftChangeDialog.getWindow().getAttributes(); attributes.width = WindowManager.LayoutParams.MATCH_PARENT; attributes.height = WindowManager.LayoutParams.MATCH_PARENT; dialog.getWindow().setAttributes(attributes);
Android Dialog 设置窗体背景颜色以及宽高
最新推荐文章于 2026-05-17 06:49:47 发布

1725

被折叠的 条评论
为什么被折叠?



