登录
首页 » java » 计算胖瘦标准

计算胖瘦标准

于 2022-04-10 发布 文件大小:1.27 MB
0 90
下载积分: 2 下载次数: 1

代码说明:

package com.example.A_5_5; import java.text.DecimalFormat; import java.text.NumberFormat; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; public class ResultActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.result); //设置该Activity使用的布局 TextView sex=(TextView)findViewById(R.id.sex); //获取显示性别的文本框 TextView stature=(TextView)findViewById(R.id.stature); //获取显示身高的文本框 TextView weight=(TextView)findViewById(R.id.weight); //获取显示标准体重的文本框 Intent intent=getIntent(); //获取Intent对象 Bundle bundle=intent.getExtras(); //获取传递的数据包 Info info=(Info)bundle.getSerializable("info"); //获取一个可序列化的info对象 sex.setText("您是一位"+info.getSex()+"士"); //获取性别并显示到相应文本框中

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • me.maxwin XListView 刷新下拉 实例源码
    me.maxwin XListView 刷新下拉 实例源码
    2014-07-17下载
    积分:1
  • java写的一个商城后台
    java写的一个商城后台,有非常漂亮的界面,强大的功能,不过要自建数据库,没有数据库是运行不起来的。
    2022-02-15 08:40:13下载
    积分:1
  • PIO read and write Excel example, to a certain extent, they are not used cycle s...
    PIO读写EXCEL实例,有一定不足,没有用到循环语句。不过涉及到读和写的一些设置,对开发一定有帮助。-PIO read and write Excel example, to a certain extent, they are not used cycle statement. However relates to read and write some settings, the development will certainly be helpful.
    2022-03-14 03:41:41下载
    积分:1
  • pinyinEngine0.1
    JavaScript拼音搜索引擎,也就是文字匹配,与搜索框的输入提示差不多,不过要更精细,内含使用方法,研究JS的朋友可一定要看看,从中你或许会学习到不少知识。(JavaScript phonetic search engine, which is the input prompt text matching the search box almost, but to be more precise, containing usage, research JS friends can be sure to look at, which you might learn a lot of knowledge.)
    2014-11-14 13:35:11下载
    积分:1
  • OptionalDataException
    Optional Data Exception extends Object Stream Exception Source Code for Andriod.
    2013-12-16 11:05:45下载
    积分:1
  • yufafenxi
    语法分析器 java版 编译课程综合训练(Java version of the compiler parser comprehensive training courses)
    2009-04-09 20:28:40下载
    积分:1
  • Airplane
    手机平台上的飞机游戏,游戏简易,操作简单易上手(Aircraft on the mobile platform game, the game simple, easy approachable)
    2010-10-01 16:34:36下载
    积分:1
  • com
    自动启动app源码,显示手机所有app并点击后可以开机自启动(auto start phone app with this source code)
    2017-08-29 23:48:35下载
    积分:1
  • ADesignOfp2pFileSearchSystem
    一个基于JXTA的P2P文件搜索系统的实现,对于研究p2p搜索算法很有帮助.(Based on JXTA)
    2007-10-10 20:29:12下载
    积分:1
  • 是一个英语辞典的增删改差的小工具源码,很好用很强大
    是一个英语辞典的增删改差的小工具源码,很好用很强大-English Dictionary is a difference of additions and deletions to change the gadget source code, very good with very strong
    2022-11-01 13:10:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载