I would like to design a chess board, but by including 8 times another layout containing 8 ImageView. Then, how can I have unique android:id for all 64 squares components ?
I would like the included layout to be designed as this :
LinearLayout (orientation : horizontal)
-> ImageView
-> …
-> ImageView
Another point, is having LinearLayout for the parent and the included layout the best performance technique ? I thought of using RelativeLayout, but I don’t see how I can manage.
I would go with a TableLayout as Code Guru mentioned here is sample code that will help you to create the chess board you are looking for
And so on and so forth…you could if you wanted to use a white and black background color alternatively instead of an image.
hope this helps!