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() {
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue