我試圖檢測長按並獲得Android的,不能讓基法setOnLongClickListener工作
The methed 'setOnLongClickListener' in type view is not applicable for the argument 'new OnLongClickListener()'
的代碼看起來像
t.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
//Offer additional options when the view is held.
MakeRingtune(strLastSound);
return true;
}
});
什麼樣的變量爲t? – hardartcore 2013-03-01 12:59:50
您試圖在LongClickListener上應用哪個視圖? – GrIsHu 2013-03-01 13:00:44