daimajia / daimajia/AndroidSwipeLayout

Problem setting differents views to bottomView

Open
#98 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.3k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Hello, i want to set diferents options in the bottonview depend on the item.

For example, I'm doing the code below in fillValues:

```
if (position == 0) { //just to make an example
btDelete.setVisibility(View.VISIBLE);
btother.setVisibility(View.GONE);
} else {
btother.setVisibility(View.VISIBLE);
btDelete.setVisibility(View.GONE);
}
```

But the bottomView is recycling views so I'm getting more than one time btDelete visisble.

How can I deal with the recycling views of the bottomview?

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.