2019独角兽企业重金招聘Python工程师标准>>>

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical" android:layout_width="fill_parent"android:layout_height="fill_parent"android:gravity="center_horizontal">
<ImageView android:layout_width="240dp"android:layout_height="wrap_content"android:src="@drawable/java"/>
<Button android:id="@+id/bn"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="确定" />
</LinearLayout>
package org.crazyit.dialog;import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;/*** Description:* <br/>site: <a href="http://www.crazyit.org">crazyit.org</a> * <br/>Copyright (C), 2001-2012, Yeeku.H.Lee* <br/>This program is protected by copyright laws.* <br/>Program Name:* <br/>Date:* @author  Yeeku.H.Lee kongyeeku@163.com* @version  1.0*/
public class MockDialog extends Activity
{@Overridepublic void onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);Button bn = (Button)findViewById(R.id.bn);//为按钮绑定事件监听器bn.setOnClickListener(new OnClickListener(){@Overridepublic void onClick(View arg0){//结束该Activityfinish();              }});}
}

转载于:https://my.oschina.net/mutouzhang/blog/207128

MockDialog相关推荐

最新文章

  1. hiv实验室抗体筛查流程图_HIV自测都有哪些方法?结果准确么?
  2. 用 Flask 来写个轻博客 (22) — 实现博客文章的添加和编辑页面
  3. python系统-python 系统相关操作
  4. 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource
  5. 【Python】print 不换行输出
  6. webapi 状态返回 php,web api不想建实体,用dynamic类型返回数据
  7. python基础教程多少页_看完这篇文章,你的Python基础就差不多了(附200页《Python400集》)...
  8. 一个请求在Struts2框架中的处理的步骤
  9. 你知道手动探针台系统的用途及组成部分吗?
  10. 2021年六级翻译:云南
  11. Java是什么?Java能干嘛?
  12. python求和1到100_python实现1加到100
  13. 搞语音的有关音频的基础知识
  14. 读《人脸自动机器识别》
  15. Odoo自动备份数据库
  16. meshgrid()函数
  17. BCM53115交换芯片光口link状态的问题
  18. ABAP ALV中自定义搜索帮助
  19. Pixel3 XL 刷Android原生系统,刷Magisk 进行ROOT
  20. linux C语言实现文件锁之flock

热门文章

  1. 第一天开通博客,记录自己在编程道路上的点点滴滴
  2. 第十章 Linux下RPM软件的安装与卸载
  3. 如何提高网站的访问速度
  4. Spring mvc3的ajax
  5. 用UML做好系统分析
  6. c primer plus(第五版)读书笔计 第四章(1)
  7. 【0521模拟赛】小Z爱数学
  8. 在Redhat安装部署Apache+MySQL+PHP(LAMP)
  9. Linux中vi编辑器的使用详解
  10. HDU 4411 Arrest(费用流)