Zi 字媒體
2017-07-25T20:27:27+00:00
Android-宣告c1的CheckBox物件變數並且和xml上的id=checkBox1物件映射連接
語法:CheckBox c1 =
(CheckBox) findViewById(R.id.checkBox1);
範例:
import android.widget.*;
CheckBox c1 = (CheckBox)
findViewById(R.id.checkBox1);
寫了
5860316篇文章,獲得
23313次喜歡