android 标准体重计算器
程序主界面截图如下:
主界面Activity_main.xml文件如下:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/showText"
android:text="计算你的标准体重"
android:textSize="25px"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/text_Sex"
android:text="性别:"
/>
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="37px"
android:id="@+id/radioGroup"
android:orientation="horizontal"
>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="男"
android:id="@+id/Sex_Man"
/>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="女"
android:id="@+id/Sex_Woman"
/>
</RadioGroup>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/text_Height"
android:text="身高:"
/>
<EditText
android:layout_width="123px"
android:layout_height="wrap_content"
android:text=""
android:id="@+id/heigth_Edit"
android:textSize="18sp"
/>
<Button
android:layout_width="80px"
android:layout_height="wrap_content"
android:text="计算"
android:id="@+id/Button_ok"
android:textSize="18sp"
/>
</LinearLayout>
mylayout.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#EC9237"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/text1"
android:textSize="20sp"
/>
<Button
android:layout_width="100px"
android:layout_height="48px"
android:id="@+id/button_back"
android:text="回上一页"
/>
</LinearLayout>
android 标准体重计算器相关推荐
- Android之标准体重计算器
Android之标准体重计算器 布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi ...
- Android开发:标准体重计算器应用的…
2013-05-23 15:06 佚名 jizhuomi 字号:T | T 本文介绍一个简易的标准体重计算器Android应用的开发实例.此功能在以前的手机中我们也经常看到. AD:51CTO学院:I ...
- Android一个界面实现标准体重计算器
界面设计 <RelativeLayout xmlns:tools="http://schemas.android.com/tools" xmlns:android=" ...
- 实验1 标准体重计算器
操作过程是:选择你的性别,然后输入你的身高,点查看计算结果的按钮就在Toast中显示你的标准体重.力求操作简单,结果显示清楚. 标准体重的计算公式: 男性:(身高cm-80)×70﹪=标准体重 女性: ...
- java编译体重指数计算器_标准体重计算器
require_once 'curl.func.php'; $appkey = 'your_appkey_here';//你的appkey $sex = 'male';//male famale $h ...
- 分享一个标准体重计算器 C#调用代码
身体质量指数 (Body Mass Index, 简称BMI), 通过身高和体重来计算您的身材是否标准 1.计算BMI值 获取标准体重参考 注意,该示例代码仅适用于 www.apishop.net网站 ...
- Android Studio BMI计算器设计(三种计算标准)
一:设计要求 BMI指数标准 二:设计框架 ①布局界面:整体为线性布局.垂直分布分别有:标题.输入框.单选组.按钮.结论. ②java代码: 三:代码实现 布局界面: <?xml versi ...
- 标准体重和饮食控制计算器
每天长时间坐在电脑前,缺乏运动,小腹渐渐长出赘肉,你是否为自己的健康感到过担心呢? 为了监控体重变化,我这两天写了一个简易的"标准体重和饮食控制计算器".只需要输入体重和身高,就可 ...
- android入门级小软件身高体重计算器源代码,初学者可以看看~
android入门级小软件身高体重计算器源代码,初学者可以看看- 一,BMI(身高体重计算器)源代码 package com.android.bmi; import java.text.Decimal ...
最新文章
- 运用供应链管理实现更快速、更高质量的交付
- SQL Server误区30日谈-Day26-SQL Server中存在真正的“事务嵌套”
- [python]逆水行舟不进则退(1)
- Android开发中,eclipse找不到已存在的layout资源文件
- linux系统调用理解之摘录(2)
- 【Python教程】读写ini配置文件的详细操作
- IA-32 Intel手册学习笔记(一)系统架构概述
- linux下的驱动大小,(转)Linux驱动开发需要注意的点/KO大小/内存管理
- careercup-数学与概率 7.7
- 恢复删除的Exchange邮箱
- C# 性能优化之斤斤计较篇 二
- mysql 身份证算年龄
- 黑莓android系统,黑莓Passport的手机系统是什么?能升级安卓5.0吗?
- 微分方程建模(人口预测,捕食者猎物)
- 报错:Ncat: bind to :::9999: Address already in use. QUITTING.
- 启动maven nexus3时遇到的诡异异常
- Arduino红外控制LED灯开关
- 苹果笔记本计算机管理员删除,如何删除一个管理员?
- 龙光城的洋房和惠州的花园
- 小学生都能读懂的区块链原理和术语介绍(故事图文)-引自《从零开始自己动手写区块链》