How to associate an Imageview to a Class?

Asked

Viewed 24 times

0

Although it is something generic, to try to clarify my doubt, I will give an example.

For example, I have a HashMap<Integer, Piece> with size 64, in which Integer would position and Piece, class for a board piece. And I have a layout with 64 ImageView(8x8 square), wanting to relate this, ie each ImageView is a Piece and its position a Integer? How this association is made between Views and classes?

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.