android线性布局之计算器的界面实现Word文档格式.docx
- 文档编号:16103462
- 上传时间:2022-11-20
- 格式:DOCX
- 页数:7
- 大小:81.89KB
android线性布局之计算器的界面实现Word文档格式.docx
《android线性布局之计算器的界面实现Word文档格式.docx》由会员分享,可在线阅读,更多相关《android线性布局之计算器的界面实现Word文档格式.docx(7页珍藏版)》请在冰豆网上搜索。
android=”http:
//schemas.android。
com/apk/res/android”
android:
layout_width="
match_parent”
layout_height=”match_parent"
android:
orientation=”vertical"
paddingTop=”5dip”>
<
LinearLayout
layout_width=”match_parent”
layout_height=”wrap_content"
orientation="
horizontal”>
EditText
id=”@+id/msg"
layout_height="
wrap_content"
>
〈/EditText>
〈/LinearLayout>
最上层的输入框的布局
布局可以嵌套布局
match_parent"
wrap_content”
〈Button
layout_height=”wrap_content”
layout_weight=”1"
text=”mc"
/Button〉
Button
layout_weight="
1"
text="
m+”〉
〈/Button>
m-”〉
text=”mr”>
〈LinearLayout
orientation=”horizontal”〉
layout_width=”match_parent"
text=”C"
1”
+/-"
〉
/Button>
layout_weight=”1”
text=”/”>
text=”*"
〈/Button〉
horizontal"
7"
text=”8"
text=”9”〉
text=”-”>
/LinearLayout>
orientation=”horizontal"
4"
text=”5"
6"
text=”+"
〈/LinearLayout〉
最下面两行的总布局
〈LinearLayoutandroid:
android:
layout_width=”match_parent”android:
layout_height=”wrap_content”>
<
LinearLayoutandroid:
3”
android:
layout_width=”wrap_content"
android:
〈LinearLayoutandroid:
android:
〈Buttonandroid:
android:
text=”1"
〉〈/Button>
text=”2”
android:
1”>
〈Buttonandroid:
3"
〈/LinearLayout>
〈LinearLayoutandroid:
layout_height=”wrap_content”〉
0px"
layout_weight=”2"
〉<
layout_width=”0px”android:
text=”。
"
<
〈/LinearLayout>
〈LinearLayoutandroid:
andr
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- android 线性 布局 计算器 界面 实现