Change button appearance to be selected

Put your problem here if it does not fit any of the other categories.

Change button appearance to be selected

Postby jasonpeinko » Thu Nov 06, 2008 5:29 am

How can i change / highlight several buttons at once?
jasonpeinko
Junior Developer
Junior Developer
 
Posts: 21
Joined: Wed Nov 05, 2008 7:30 am

Top

Postby MrSnowflake » Thu Nov 06, 2008 10:24 am

What do you mean change? And Highlight? You can only have 1 button 'selected' at a time (as Android is single touch, so multiple buttons selected wouldn't make sense. You can't do this in Windows/Mac/ GNU/Linux either).
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby jasonpeinko » Fri Nov 07, 2008 3:28 am

When you click on a button it changes the background to the orange color.


im making a simple tic tac toe game and to show where the player won i want to highlight the buttons that are the winning line.
jasonpeinko
Junior Developer
Junior Developer
 
Posts: 21
Joined: Wed Nov 05, 2008 7:30 am

Postby Quetzalcoatl » Fri Nov 07, 2008 9:59 am

You could just change the image displayed on the button (or all 3 in your case :) ).

http://www.anddev.org/masking_imagebutton_images-t3376.html
Image
Quetzalcoatl
Senior Developer
Senior Developer
 
Posts: 129
Joined: Sat Oct 18, 2008 8:21 pm
Location: near Manchester, UK

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests