-
Notifications
You must be signed in to change notification settings - Fork 2.7k
can't disable item in list view #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey, thanks your feedback. Could you please paste your code here? Which method you are using to disable item? |
This is My whole adapter code...
|
Hi, please bind listener in |
move the following code to swipeLayout.addSwipeListener(new SwipeLayout.SwipeListener() {
@Override
public void onUpdate(SwipeLayout arg0, int arg1, int arg2) {
// TODO Auto-generated method stub
}
@Override
public void onOpen(SwipeLayout layout) {
Button add, edit, delete;
edit = (Button) layout.findViewById(R.id.edit);
add = (Button) layout.findViewById(R.id.add);
delete = (Button) layout.findViewById(R.id.remove);
edit.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
((MainActivity) getActivity()).addlocation(1,
list.get(position));
}
});
add.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
((MainActivity) getActivity()).addlocation(0);
}
});
delete.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
db.removelocation(list.get(position).getL_id());
list.remove(position);
notifyDataSetChanged();
}
});
}
@Override
public void onHandRelease(SwipeLayout arg0, float arg1,
float arg2) {
// TODO Auto-generated method stub
}
@Override
public void onClose(SwipeLayout layout) {
}
}); |
BTW. you can use |
i done as you told me but there list rows are still enable...here's my new code
|
Ok, I got the reason of this problem, I'll fix it ASAP. |
Hey, guy. |
First of all awesome library man..
But there is only one problem i am facing i cant disable any listview item..
i try using is enable override mathod of adpter but still item is enabled..
please answer asap....
The text was updated successfully, but these errors were encountered: