摘要:
一.写出实现如图所示的对话框的代码。 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools=" 阅读全文
摘要:
设计界面如下图如示,在编辑框中只接受电话号码,实现“拨打电话”和“发送短信”的功能 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/a 阅读全文
摘要:
一.单选对话框 1.不能直接实例化使用 2.使用内部构造器来生成对话框 3.new AlertDialog.Builder(context) 实例化构造器 1-setTitle (标题) 2-setMessage (消息) 3-按钮 1°确认按钮 setPositiveButton(“文字”,点击事 阅读全文
摘要:
一.自定义对话框 1.不能直接实例化使用 2.使用内部构造器来生成对话框 3.new AlertDialog.Builder(context) 实例化构造器 1-setTitle (标题) 2-setMessage (消息) 3-按钮 1°确认按钮 setPositiveButton(“文字”,点击 阅读全文
摘要:
一.日期对话框 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://sche 阅读全文