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
相关文章
相关标签/搜索