---
title: " menuDialog"
author: "liangoogle"
date: "2011-05-20T17:29:50Z"
tags: []
categories: ["移动开发"]
slug: "menudialog"
draft: false
lastmod: "2011-05-20T23:05:41Z"
id: 1051952
url: "https://liangoogle.iteye.com/blog/1051952"
---

 menuDialog = new AlertDialog.Builder(this).create();
  WindowManager.LayoutParams lp = menuDialog.getWindow().getAttributes();
  lp.alpha = 0.9f;   //设置了对话框的透明度

  lp.dimAmount = 0.5f;
   lp.y = 35;    //对话框的显示位置
  menuDialog.getWindow().setAttributes(lp)