自定义Dialog设置显示位置
2012-01-11 14:46
302 查看
Dialog dialog=new Dialog(TestActivity.this); dialog.setContentView(R.layout.dialog); Window mWindow = dialog.getWindow(); WindowManager.LayoutParams lp = mWindow.getAttributes(); //缺省居中lp.x=0,lp.y=0 新坐标 x小于0左移,大于0右移;y小于0上移,大于0下移 lp.x= 0; lp.y= 0;
相关文章推荐
- 自定义dialog窗口,根据坐标可随意设置dialog显示位置,实现了窗口弹出动画
- 自定义Dialog,去除系统默认黑色背景以及边框并设置dialog的显示位置
- android 自定义Dialog背景透明及显示位置设置的方法
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- 自定义Dialog,去除系统默认黑色背景以及边框并设置dialog的显示位置
- 自定义Dialog,去除系统默认黑色背景以及边框并设置dialog的显示位置
- Android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置(转载)
- android--自定义ProgressDialog显示位置(其它Dialog子类都可以设置)
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置
- android 自定义Dialog背景透明及显示位置设置