Android 计算器界面
2024-08-21 06:30:06
高仿魅族魅蓝NOTE 2风格
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_row="4"
android:stretchColumns="1">
<EditText
android:layout_width="387dp"
android:layout_height="270dp"
android:editable="true"
android:inputType="number"
android:textSize="30dp"
android:background="#999">
</EditText>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CE"
android:textSize="20dp"
android:background="#990"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="C"
android:textSize="20dp"
android:background="#990"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20dp"
android:background="#990"
android:textColor="#FFF"
android:text="%" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+"
android:textSize="20dp"
android:background="#990"
android:textColor="#FFF"/> </TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="7"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="8"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="9"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="-"
android:textSize="20dp"
android:background="#990"
android:textColor="#FFF"/>
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="4"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="5"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="6"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="X"
android:textSize="20dp"
android:background="#990"
android:textColor="#FFF"/>
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="3"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/> <Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="÷"
android:textSize="20dp"
android:background="#990"
android:textColor="#FFF"
android:layout_column="3" />
</TableRow>
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="00"
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="."
android:textSize="20dp"
android:background="#999"
android:textColor="#FFF"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="="
android:textSize="20dp"
android:background="#990"
android:textColor="#FFF"/>
</TableRow>
</TableLayout>
最新文章
- hibernate.cfg.xml
- Comparable和Comparator的区别
- eclipse如何优化构建的速度(Building)
- 数据源和JNDI的关系:
- Linux 中open系统调用实现原理【转】
- yum代理设置
- [转]ASP.NET MVC 入门1、简介
- iOS开发之CALayer
- File类遍历目录及文件
- JAVA基础-反射
- 利用GitHub Pages和Bootstrap创建个人网站
- [Swift]LeetCode572. 另一个树的子树 | Subtree of Another Tree
- mysql忘记root密码,修改mysql密码
- OS位数,基本概念,结合iOS
- ADO.NET 【类库】【与数据库的连接】
- 20155305乔磊2016-2017-2《Java程序设计》第一周学习总结
- LR简单解析
- 放弃setInterval-说说定时器
- 【POJ2728】Desert King(分数规划)
- 查看tomcat启动文件都干点啥---catalina.bat
热门文章
- 使用sysprep克隆虚拟机
- zw版【转发&#183;台湾nvp系列Delphi例程】HALCON EdgesImage
- [php]表单和验证
- 「ruby/MiniMagick」用MiniMagick处理图片
- [sinatra] Just Do It: Learn Sinatra, Part One Darren Jones
- Hadoop之TaskInputOutputContext类
- Loadrunner 接口测试的两种方法
- C# ZipHelper C#公共类 压缩和解压
- 12、Jsp加强/自定义标签/JavaBean
- libsqlite3.dylib找不到