---
title: "ProgressDialog设置位置"
author: "mrjeye"
date: "2012-06-15T16:28:31Z"
tags: []
categories: ["移动开发"]
slug: "progressdialog"
draft: false
lastmod: "2012-06-15T16:28:31Z"
id: 1561705
url: "https://mrjeye.iteye.com/blog/1561705"
---

```java

LayoutParams params = recordProgress.getWindow().getAttributes();
						params.y = 100;
						params.gravity = Gravity.TOP;
						
						recordProgress.getWindow().setAttributes(params);

```