Android核心基础——S01E08_拨号器的布局
来源:互联网 发布:短信群发端口 编辑:程序博客网 时间:2024/05/11 23:35
显示文本的控件 TextView
输入框控件 EditText
按钮控件 Button
界面布局:
<?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">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/inputmobile"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/mobile"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button"
android:id="@+id/button"/>
</LinearLayout>
/** * @author andong * 程序刚运行就显示的界面 */public class MainUI extends Activity {/** * 当界面刚被创建时回调此方法 */@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);// 必须执行此句代码. 执行父类的初始化操作.setContentView(R.layout.main);// 设置当前界面显示的布局.}/** * 当拨打此号码的按钮被点击时触发此方法. * @param v */public void call(View v) {System.out.println("拨打电话.");<span style="white-space:pre"></span>}}
0 0
- Android核心基础——S01E08_拨号器的布局
- Android核心基础——S01E09_拨号器完成
- Android核心基础——S02E02_布局演示(LinearLayout, RelativeLayout)
- Android核心基础——概述、布局、单击事件
- Android拨号器---熟练控件与布局的应用
- Android核心基础-6.演示案例-6.1.电话拨号
- 【Android基础】电话拨号器
- Android核心基础——S02E03_布局演示和android下单位
- android拨号器的
- 【黑马程序员Android自学笔记】62期-26天-安卓基础 — 电话拨号器
- android入门01——拨号器
- Android项目——电话拨号器
- Android——电话拨号器
- Android开发笔记——拨号器
- android拨号器的实现
- Android拨号器的实现
- android的IP拨号器
- Android核心基础——S02E01_短信发送器
- 洞察无做文章三星Galaxy S5的秘密
- linux内存管理大图
- 步骤安装Ubuntu 11.04用五笔
- 格雷格·雷耶斯是一种荣誉和慈善朋友
- 根inode腐败在Linux上运行fsck将在挂载文件系统后
- Android核心基础——S01E08_拨号器的布局
- 查找最佳的JQuery教程初学者
- bit-set用法
- HOG中的三线性插值
- 程序对拍
- 福邦X456多媒体双卡双待手机
- 福邦X50时尚而新潮的防水手机
- HTTP contentType
- 加载配置文件