Added transparency to the card if it's selected to be reordered in the list
This commit is contained in:
parent
acf1634ce4
commit
cee9206eac
1 changed files with 2 additions and 0 deletions
|
@ -280,12 +280,14 @@ public class EntryViewHolder extends RecyclerView.ViewHolder
|
|||
public void onItemSelected() {
|
||||
if (callback != null)
|
||||
callback.onMoveEventStart();
|
||||
card.setAlpha(0.5f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemClear() {
|
||||
if (callback != null)
|
||||
callback.onMoveEventStop();
|
||||
card.setAlpha(1f);
|
||||
}
|
||||
|
||||
public void setCallback(Callback cb) {
|
||||
|
|
Loading…
Reference in a new issue