我正在尝试检测长按并获得:
类型视图中的方法“setOnLongClickListener”不适用于参数“new OnLongClickListener()”
代码如下:
t.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
//Offer additional options when the view is held.
MakeRingtune( strLastSound);
return true;
}
});