Highlight UTXOs as they are selected

This commit is contained in:
pokkst 2022-09-22 17:51:36 -05:00
parent f52acd1169
commit de7138c05a
No known key found for this signature in database
GPG key ID: 90C2ED85E67A50FF

View file

@ -21,6 +21,7 @@ import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.TextView; import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import net.mynero.wallet.R; import net.mynero.wallet.R;
@ -105,6 +106,12 @@ public class CoinsInfoAdapter extends RecyclerView.Adapter<CoinsInfoAdapter.View
listener.onUtxoSelected(coinsInfo); listener.onUtxoSelected(coinsInfo);
return true; return true;
}); });
if(selected) {
itemView.setBackgroundColor(ContextCompat.getColor(itemView.getContext(), R.color.oled_negativeColor));
} else {
itemView.setBackgroundColor(ContextCompat.getColor(itemView.getContext(), android.R.color.transparent));
}
} }
} }
} }