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() { public void onItemSelected() {
if (callback != null) if (callback != null)
callback.onMoveEventStart(); callback.onMoveEventStart();
card.setAlpha(0.5f);
} }
@Override @Override
public void onItemClear() { public void onItemClear() {
if (callback != null) if (callback != null)
callback.onMoveEventStop(); callback.onMoveEventStop();
card.setAlpha(1f);
} }
public void setCallback(Callback cb) { public void setCallback(Callback cb) {