【实战】计算器的样式布局
来源:互联网 发布:书生商友seo 编辑:程序博客网 时间:2024/06/05 03:13
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" ><EditText android:layout_width="fill_parent" android:layout_height="wrap_content"/> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:textColor="#FFC928" android:text="C" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="DEL" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="÷" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="×" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:text="7" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="8" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="9" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="-" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:text="4" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="5" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="6" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:text="+" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" /> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <LinearLayout android:layout_width="0dip" android:layout_weight="3" android:layout_height="wrap_content" android:orientation="vertical"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:text="1" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content"/> <Button android:text="2" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content"/> <Button android:text="3" android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content"/> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:text="0" android:layout_width="0dip" android:layout_weight="2" android:layout_height="wrap_content"/> <Button android:text="." android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content"/> </LinearLayout> </LinearLayout> <Button android:background="#F07423" android:text="=" android:gravity="bottom|right" android:layout_width="0dip" android:layout_weight="1" android:layout_height="fill_parent"/> </LinearLayout> <ToggleButton android:id="@+id/toggleButton1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="ToggleButton" /></LinearLayout>
阅读全文
0 0
- 【实战】计算器的样式布局
- 线性布局--简单计算器的布局
- RecyclerView的布局样式
- java项目实战-计算器(页面布局学习 添加事件)
- 计算器布局
- PyQt实战之计算器的实现
- [实战]网页版计算器的编写
- Android4.0新增的 网格布局:计算器
- 制作一个简单的计算器布局
- android相对布局--计算器的例子
- Swing 布局管理器的嵌套,计算器
- 自定义dialog的布局样式
- 自定义dialog的布局样式
- html常用的样式布局
- 自定义dialog的布局样式
- css 样式布局的问题
- 布局时的公共样式
- css样式布局的椭圆
- hdu 4791 Alice's Print Service(二分)
- appium自动化测试实践之Androidstudio模拟器avd创建和连接
- JS之随机点名系统
- qt调试中的一些问题
- 模拟实现容器适配器栈和队列
- 【实战】计算器的样式布局
- 第十一天(HTML5BASIC)
- 分析golang的slice排序
- 调用request请求返回xml
- 二叉树:前序,后序,中序遍历(递归+非递归);层次(队列)
- ajax的一些小问题
- 元素的显示隐藏
- 排序总结
- [堪称经典]JAVA多线程和并发基础面试问答