Quote (carteblanche @ Apr 29 2015 04:56pm)
my question is how are you filling it?
so i have something like this in onCreate:
Code
x1_view.setVisibility(View.INVISIBLE);
x2_view.setVisibility(View.INVISIBLE);
x3_view.setVisibility(View.INVISIBLE);
x4_view.setVisibility(View.INVISIBLE);
x5_view.setVisibility(View.INVISIBLE);
x6_view.setVisibility(View.INVISIBLE);
x7_view.setVisibility(View.INVISIBLE);
x8_view.setVisibility(View.INVISIBLE);
x9_view.setVisibility(View.INVISIBLE);
then i was thinking since the board is the only thing that is visible initially, depending on where the user clicks in the board, the x/o will become visible:
Code
@Override
public void onClick(View view) {
if (view.getId() == R.id.board) {
//switch case or if statement depending on location of the board being clicked/touched.
x1_view.setVisibility(View.VISIBLE);
}
}
i might be totally complicating things.
or i can split the board into 9 individual ImageButtons and then i don't evne have to worry about the location. that will save me a lot of headache.
is there a better way to approaching this?
This post was edited by iGotThatFiyah on Apr 29 2015 08:05pm