是否可以对onlongclickListener执行两个操作。 下面是示例代码
public class traction implements OnLongClickListener {
private Activity activity;
static int i = 0;
public traction(Activity activity) {
this.activity = activity;
}
public void onLongClick(View v) {
Intent i = new Intent(activity, login.class);
activity.startActivity(i);
}
}}
这里当我按fst时活动开火,如果我做了三次长按,另一个活动应该开火......谢谢