Start

来源:互联网 发布:php彩票网站系统 编辑:程序博客网 时间:2024/04/25 07:34

Android
1.Learned to scroll the screen by ScrollView.

2.Learned the new view : CheakBox, new method: isChecked(), toString().
getText() it will get a editable variable. it can not be stored in the form of String.

To show a toast
3.Toast toast = Toast.makeText (context, text, duration);
toast.show();

context refer to the activity, you can use “this” to refer to the current activity.

text: what you want to express in the screen. maybe a string.

duration: the time length that the text will exist.
Attribute: “Toast.LENGTH_SHORT“, Toast.LENGTH_LONG

use .show() to start the method.

example:
Toast.makeText(this, “You can’t reduce anymore!”, Toast.LENGTH_SHORT).show();

0 0