android - Determine turn taking in game -


i creating game , highly appreciate advise on this.

i have activity loads class , class loaded, text view shows player 1 turn. understand can set in xml.

but when player 1 loses game text field should show player 2 turn.

it great if explain how this.

even better if 2 people enter there names 1 player 1 , player 2 show names of turn is.

many thanks.

1) dont set text in xml file. since app supposed set text dynamically

2) read this. can use settext() dispay desired text.

code textview

textview tv = (textview) findviewbyid(r.id.yourtextviewid) 

it if read book on android programming before starting game programming


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -