Added transparency to the card if it's selected to be reordered in the list

This commit is contained in:
Ullas-Aithal 2020-02-26 22:19:52 -06:00
parent acf1634ce4
commit cee9206eac

View file

@ -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) {