Android仿计算器布局代码
来源:互联网 发布:淘宝抢购秒杀怎么抢手机软件 编辑:程序博客网 时间:2024/05/29 21:18
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:stretchColumns="0,1,2,3,4" >
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MC" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MR" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MS" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+M" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="-M" />
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="<-" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CE" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="C" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+-" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="-/" />
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="7" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="8" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="9" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="/" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="%" />
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="4" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="5" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="6" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="*" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1/x" />
</TableRow>
</TableLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="98dp"
android:orientation="vertical" >
<TableLayout
android:id="@+id/tl"
android:layout_width="255dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:stretchColumns="0,1,2,3" >
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="3" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="4" />
</TableRow>
<TableLayout
android:layout_width="255dp"
android:layout_height="wrap_content"
android:stretchColumns="0,1,2,3" >
<TableRow>
<Button
android:layout_width="94dp"
android:layout_height="wrap_content"
android:text="0" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="." />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+" />
</TableRow>
</TableLayout>
</TableLayout>
<Button
android:layout_toRightOf="@id/tl"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="="/>
</RelativeLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:stretchColumns="0,1,2,3,4" >
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MC" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MR" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MS" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+M" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="-M" />
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="<-" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CE" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="C" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+-" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="-/" />
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="7" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="8" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="9" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="/" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="%" />
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="4" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="5" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="6" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="*" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1/x" />
</TableRow>
</TableLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="98dp"
android:orientation="vertical" >
<TableLayout
android:id="@+id/tl"
android:layout_width="255dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:stretchColumns="0,1,2,3" >
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="3" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="4" />
</TableRow>
<TableLayout
android:layout_width="255dp"
android:layout_height="wrap_content"
android:stretchColumns="0,1,2,3" >
<TableRow>
<Button
android:layout_width="94dp"
android:layout_height="wrap_content"
android:text="0" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="." />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+" />
</TableRow>
</TableLayout>
</TableLayout>
<Button
android:layout_toRightOf="@id/tl"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="="/>
</RelativeLayout>
</LinearLayout>
- Android仿计算器布局代码
- 用Android仿计算器布局代码
- 仿计算器布局代码
- 仿计算器布局代码。(应用各种布局)
- 仿android计算器
- 安卓仿计算器布局代码
- Android计算器界面布局
- Android计算器布局
- Android仿Win10计算器设计
- Android 仿 WP7 布局
- ANDROID--仿瀑布布局
- Android开发计算器之布局
- Android画面简单布局-计算器
- 吃透Android计算器代码
- android-仿QQ界面布局
- android仿苹果弹性布局
- android线性布局之计算器界面设计
- Android,GridLayout布局(简易计算器)
- C++调用Python(3)
- Windows 8 Directx 开发学习笔记(十一)地形纹理贴图
- 网页HTML右侧浮动DIV层广告或在线客服图片框最佳代码(支持Firefox&IE)
- 服务器必看书目
- 排序算法之选择排序(JAVA)
- Android仿计算器布局代码
- ASP.NET 弹出提示框所有种类
- Spring MVC中的页面跳转
- 集合映射
- 链接错误小结(转)
- 十大OpenGL教程
- b/s 与c/s之间的区别和联系
- 机房收费系统---报表中参数的传递问题
- man popen 中文翻译页面