LayoutParams params = recordProgress.getWindow().getAttributes();
params.y = 100;
params.gravity = Gravity.TOP;
recordProgress.getWindow().setAttributes(params);
ProgressDialog设置位置
最新推荐文章于 2021-05-26 09:09:35 发布
本文介绍了一种通过修改LayoutParams属性来调整Android应用中对话框位置的方法。具体操作包括获取窗口属性、设置新的位置参数并重新应用这些属性。
286

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



