首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 计算胖瘦标准

计算胖瘦标准

  • 资源大小:1.27 MB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: java java

资 源 简 介

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()+"士"); //获取性别并显示到相应文本框中<

文 件 列 表

根据身高计算标准体重5_5
src
res
libs
gen
bin
assets
.classpath
.project
.settings
org.eclipse.jdt.core.prefs
AndroidManifest.xml
ic_launcher-web.png
proguard-project.txt
project.properties
.settings
VIP VIP
0.180982s