I would think this should be a relatively easy question to answer, but I'm brand new to android development and so not sure where else to turn.
I have a simple layout (relative currently) for my main Activity. I want to create an object (a card for a card game) that will have all of the necessary properties for that card (value, suit, etc). I have images for all of those cards in my drawable folder.
For the sake of testing, I created a card.xml file in my layout folder and "hardcoded" in the background for one card.
My question is, now that I have an xml file with the layout for my card, how should I plug this into an object that contains info about that card and then how do I pull that object onto my main scene? Should I create the card object as another activity and use setContentView() to reference the card.xml in the layout folder? As I said, I'm just starting android development and not entirely sure how Activities work. Assuming this is the correct method, how would I then pull this second activity onto my main scene?
TIA