[問題] 編譯可以過但是模擬器上出現錯誤
public class Main extends Activity {
/** Called when the activity is first created. */
public void onCreate(Bundle saveInstanceState){
super.onCreate(saveInstanceState);
setContentView(R.layout.test1);
Button button1 = (Button) findViewById(R.id.num1);
button1.setOnClickListener((OnClickListener) this);
}
}
小弟我剛踏入這一塊
目前在研究怎麼把一個button放在螢幕上
請問還缺少哪一個部分呢@@
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.42.72.71
推
03/28 14:18, , 1F
03/28 14:18, 1F
→
03/28 14:19, , 2F
03/28 14:19, 2F
→
03/28 14:19, , 3F
03/28 14:19, 3F
→
03/28 14:20, , 4F
03/28 14:20, 4F
→
03/28 14:55, , 5F
03/28 14:55, 5F
AndroidDev 近期熱門文章
PTT數位生活區 即時熱門文章
-4
30