---
title: "safe05"
author: "xpchou"
date: "2012-08-19T21:52:41Z"
tags: []
categories: ["移动开发"]
slug: "safe05"
draft: false
lastmod: "2012-08-19T21:52:41Z"
id: 1637547
url: "https://xpchou.iteye.com/blog/1637547"
---

1.setOnCancelListener(listener);
  当用户关闭对话框的时候调用的方法

2.serializer.attribute();//添加属性
  parser.getAttributeValues(0);//获得属性的值