程序主界面截图如下:

主界面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 标准体重计算器相关推荐

  1. Android之标准体重计算器

    Android之标准体重计算器 布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi ...

  2. Android开发:标准体重计算器应用的…

    2013-05-23 15:06 佚名 jizhuomi 字号:T | T 本文介绍一个简易的标准体重计算器Android应用的开发实例.此功能在以前的手机中我们也经常看到. AD:51CTO学院:I ...

  3. Android一个界面实现标准体重计算器

    界面设计 <RelativeLayout xmlns:tools="http://schemas.android.com/tools" xmlns:android=" ...

  4. 实验1 标准体重计算器

    操作过程是:选择你的性别,然后输入你的身高,点查看计算结果的按钮就在Toast中显示你的标准体重.力求操作简单,结果显示清楚. 标准体重的计算公式: 男性:(身高cm-80)×70﹪=标准体重 女性: ...

  5. java编译体重指数计算器_标准体重计算器

    require_once 'curl.func.php'; $appkey = 'your_appkey_here';//你的appkey $sex = 'male';//male famale $h ...

  6. 分享一个标准体重计算器 C#调用代码

    身体质量指数 (Body Mass Index, 简称BMI), 通过身高和体重来计算您的身材是否标准 1.计算BMI值 获取标准体重参考 注意,该示例代码仅适用于 www.apishop.net网站 ...

  7. Android Studio BMI计算器设计(三种计算标准)

    一:设计要求  BMI指数标准  二:设计框架 ①布局界面:整体为线性布局.垂直分布分别有:标题.输入框.单选组.按钮.结论. ②java代码: 三:代码实现 布局界面: <?xml versi ...

  8. 标准体重和饮食控制计算器

    每天长时间坐在电脑前,缺乏运动,小腹渐渐长出赘肉,你是否为自己的健康感到过担心呢? 为了监控体重变化,我这两天写了一个简易的"标准体重和饮食控制计算器".只需要输入体重和身高,就可 ...

  9. android入门级小软件身高体重计算器源代码,初学者可以看看~

    android入门级小软件身高体重计算器源代码,初学者可以看看- 一,BMI(身高体重计算器)源代码 package com.android.bmi; import java.text.Decimal ...

最新文章

  1. 运用供应链管理实现更快速、更高质量的交付
  2. SQL Server误区30日谈-Day26-SQL Server中存在真正的“事务嵌套”
  3. [python]逆水行舟不进则退(1)
  4. Android开发中,eclipse找不到已存在的layout资源文件
  5. linux系统调用理解之摘录(2)
  6. 【Python教程】读写ini配置文件的详细操作
  7. IA-32 Intel手册学习笔记(一)系统架构概述
  8. linux下的驱动大小,(转)Linux驱动开发需要注意的点/KO大小/内存管理
  9. careercup-数学与概率 7.7
  10. 恢复删除的Exchange邮箱
  11. C# 性能优化之斤斤计较篇 二
  12. mysql 身份证算年龄
  13. 黑莓android系统,黑莓Passport的手机系统是什么?能升级安卓5.0吗?
  14. 微分方程建模(人口预测,捕食者猎物)
  15. 报错:Ncat: bind to :::9999: Address already in use. QUITTING.
  16. 启动maven nexus3时遇到的诡异异常
  17. Arduino红外控制LED灯开关
  18. 苹果笔记本计算机管理员删除,如何删除一个管理员?
  19. 龙光城的洋房和惠州的花园
  20. 小学生都能读懂的区块链原理和术语介绍(故事图文)-引自《从零开始自己动手写区块链》

热门文章

  1. 你的计算机usb管理策略,Win2008 R2管理二:组策略之控管USB
  2. 如何开发一个对账系统
  3. Linux环境安装Jenkins
  4. Spacy分词php,自然语言处理工具包spaCy介绍
  5. 欧姆龙PLC ST语言6轴伺服RS232C通讯板CP1W-C IF0 真实项目程序,ST语言写的FB块
  6. PHP2(phps)- URL编码解码原理
  7. 2022Java基础、语法最全面试题,为秋招做好准备
  8. 【FH-GFSK】FH-GFSK信号分析与盲解调研究
  9. 【面试】27.电话面试交流常见问题
  10. 【校招VIP】面试的最后一个问题同学问:确认一下是不是双休?