用Eslipse开发Android案例(1)——计算器<part2>
来源:互联网 发布:java 时间格式 编辑:程序博客网 时间:2024/06/05 19:35
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/LinearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <EditText android:id="@+id/text" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <Button android:id="@+id/seven" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="7" android:layout_weight="1" /> <Button android:id="@+id/eight" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="8" android:layout_weight="1"/> <Button android:id="@+id/nine" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="9" android:layout_weight="1" /> <Button android:id="@+id/除号" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="/" android:layout_weight="1"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <Button android:id="@+id/four" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="4" android:layout_weight="1" /> <Button android:id="@+id/five" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="5" android:layout_weight="1"/> <Button android:id="@+id/six" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="6" android:layout_weight="1"/> <Button android:id="@+id/乘号" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="*" android:layout_weight="1"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <Button android:id="@+id/one" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="1" android:layout_weight="1"/> <Button android:id="@+id/two" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="2" android:layout_weight="1"/> <Button android:id="@+id/three" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="3" android:layout_weight="1"/> <Button android:id="@+id/减号" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-" android:layout_weight="1"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <Button android:id="@+id/point" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="." android:layout_weight="1" /> <Button android:id="@+id/zero" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0" android:layout_weight="1" /> <Button android:id="@+id/删除" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="←" android:layout_weight="1"/> <Button android:id="@+id/plus" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="+" android:layout_weight="1"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <Button android:id="@+id/equal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.75" android:text="=" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <Button android:id="@+id/clear" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="" /> </LinearLayout></LinearLayout>
效果图
可能出现的问题
http://stackoverflow.com/questions/27514540/android-development-getmenuinflaterr-menu-main-menu
0 0
- 用Eslipse开发Android案例(1)——计算器<part2>
- 用Eslipse开发Android案例(1)——计算器<part1>
- Android案例(1)——一个简单的计算器
- 我的Android案例—计算器
- Android系列案例2:android开发简易计算器
- Android学习-计算器案例
- java第一季-eslipse开发
- jsp+javaBean开发计算器案例
- day5 part2:实例开发2---仿Windows计算器
- PART2 将Android移植到FS2410开发板 (转)
- Android开发——实现Android简易计算器
- Android实训案例(一)——计算器的运算逻辑
- Android实训案例(一)——计算器的运算逻辑
- Android实训案例(一)——计算器的运算逻辑
- Android初级教程Activity小案例(计算器乘法运算)
- Android游戏开发基础part2--Canvas画布
- Java Web开发框架对比—Part2—框架复杂性
- Python案例-开发之路-计算器
- 面向问题,而非面向对象
- 探究fork函数
- CentOS 7安装Chrome浏览器
- Jsoup 查询时根据标签class属性和id属性查找
- 内存池——第二章 自定义内存池 & 动态分段连续的内存池(1)
- 用Eslipse开发Android案例(1)——计算器<part2>
- C语言基本数据类型
- mysql中的元数据锁
- leetcode刷题,总结,记录,备忘 8
- exynos 4412 Framebuffer驱动详解
- [LeetCode] 343. Integer Break
- 记录开发中listview的动态显示
- 202. Happy Number
- httpclient 简单实例