final Dialog dialog = new Dialog(context);
dialog.show();
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));
dialog.setContentView(R.layout.login);
From:http://blog.youkuaiyun.com/hundsong/article/details/8162990
本文介绍如何使用Android创建一个具有透明背景的登录对话框。通过设置对话框的背景为透明并指定特定布局,可以实现美观且实用的登录界面。
final Dialog dialog = new Dialog(context);
dialog.show();
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));
dialog.setContentView(R.layout.login);
From:http://blog.youkuaiyun.com/hundsong/article/details/8162990
348
3798

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