Skip to content

Tag: android

Assign random class object (image) to ImageView

I’m developing a card game, based on higher wins. From my first question here assign int value to image for compare I’ve rewritten my code but now I’m stuck on randomization of cards and assignment to ImageView. I have a class card. In MainActivity: I have array of this cards: Now I need to …