Android事件處理二(長按事件)

一、實驗步驟 (實驗環境:eclipse) 1.定義兩個成員對象 private Button button; private TextView textView; 2.查找到兩個控件 button=(Button) findViewById(R.id.bt); textView=(TextView) findViewById(R.id.tv_show); 3.創建一個事件 button.setO
相關文章
相關標籤/搜索