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