- 第一种:
- Toast.makeText(Calculator.this , "The buttonface was 1." , Toast.LENGTH_SHORT).show();
- 第二种
- private void openOptionsDialog() {
- new AlertDialog.Builder( this )
- .setTitle("weight / (height * height) is :" + BMI)
- .setMessage("Android BMI Calc" )
- .show();
- }
- openOptionsDialog();
两种小提示信看
最新推荐文章于 2023-06-18 10:44:54 发布