Hi All, I have a question that has been bothering me and I thought I'd see if someone here could help us.
We are developing an app that is a card game. The current app has a screen where the user can select the character they want to be from seven different characters. Currently, these characters are presented to the user as images, three on each side, and one on the bottom. So, if you will, the choice of characters form a "U" around the screen. I've been able to do this in Android with buttons, but this is obviously not the best solution as there are seven different handlers for the buttons - one for each character. I would like to do it with a GridView so that I can use OnListItemSelected which has the position of the character which is the information I really need. However, I am not able to place the characters in this "U" shape that we want to maintain. I can do it via rows and columns with GridView, but not the "U". I've tried AbsoluteLayout.LayoutParams and this seems to be ignored. Ie, gv.LayoutParams(new AbsoluteLayout.LayoutParams (45,45,0,245)); where 0,245 is where I want to place the image. (This syntax may not be right - I'm doing this from memory since I'm at work.) The above line is the only change I've made to the sample Grid2.java since it does everything else we need. Can somebody hit me upside the head and explain this to me? I don't really care if its GridView, Buttons or whatever, just as long as I don't need n handlers for n images. Mainly because we need the same logic for the user to play the game and a handler per image would get real ugly real fast. Thanks all! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

