button array

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

button array

Postby linkmaster_6 » Thu Oct 16, 2008 8:56 pm

Hi i want to make a array out of buttons. can someone help me?
linkmaster_6
Experienced Developer
Experienced Developer
 
Posts: 51
Joined: Thu Oct 16, 2008 8:52 pm

Top

Postby MrSnowflake » Thu Oct 16, 2008 9:07 pm

I don't get what you mean. U want an array of buttons in code? Or just x buttons in a layout?
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby linkmaster_6 » Thu Oct 16, 2008 9:29 pm

well im trying to make a tic tac toe game myself

it is going to work something like this


1 2 3
4 5 6
7 8 9

that being the bored. 1 -9 being an array of buttons that i can call so if
button[1,2,3] is selected either x or o wins
linkmaster_6
Experienced Developer
Experienced Developer
 
Posts: 51
Joined: Thu Oct 16, 2008 8:52 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests