Dialog
来源:互联网 发布:如何两个人练口语 知乎 编辑:程序博客网 时间:2024/06/01 09:37
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(msg);
builder.setTitle(“提示”);
builder.setPositiveButton(“确认”, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
});
Dialog dialog = builder.create();
Window window = dialog.getWindow();
//重新设置
WindowManager.LayoutParams lp = window.getAttributes();
int screenHeight = DisplayUtil.getInstance().getScreenHeight(this);
lp.y = (screenHeight) / 4;
window.setAttributes(lp);
dialog.show();
阅读全文
0 0
- Dialog
- Dialog
- Dialog
- Dialog
- Dialog
- dialog
- Dialog
- dialog
- dialog
- dialog
- Dialog
- dialog
- Dialog
- Dialog
- Dialog
- Dialog
- Dialog
- dialog
- setsockopt()函数使用详解
- 接口
- Linux 文件类型特殊权限 s、t、i、a
- 猎豹移动 CEO 傅盛:后互联网时代 ,“中国模式”弯道超车
- hibernate一对多及多对多配置
- Dialog
- error: style attribute '@android:attr/windowEnterAnimation' not found.
- ionic2 百度地图
- 得到本周日的日期
- RecyclerView
- org.apache.catalina.LifecycleException
- Node.js模块
- 用Jpa查询的数据,不能用PageHelper进行分页
- oracle锁表处理