We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e527bb commit cd25084Copy full SHA for cd25084
1 file changed
app/src/main/java/com/hjq/demo/ui/adapter/StatusAdapter.java
@@ -1,7 +1,6 @@
1
package com.hjq.demo.ui.adapter;
2
3
import android.content.Context;
4
-import android.view.View;
5
import android.view.ViewGroup;
6
import android.widget.TextView;
7
import androidx.annotation.NonNull;
@@ -38,13 +37,6 @@ private ViewHolder() {
38
37
@Override
39
public void onBindView(int position) {
40
mTextView.setText(getItem(position));
41
- getItemView().setOnLongClickListener(new View.OnLongClickListener() {
42
- @Override
43
- public boolean onLongClick(View v) {
44
- removeItem(position);
45
- return false;
46
- }
47
- });
48
}
49
50
0 commit comments