I'm trying to convert a c# windows form program over to android and I'm at the very last piece that I can't seem to figure out the translation for.
I have 9 buttons in a framelayout that I need to remove the text from either by iterating or by grabbing all at once.
In my original program I used a foreach loop like this:
foreach(control boardPosition in gameBoard)
{
((Button) boardPosition).Text ="";
((Button) boardPosition).ForeColor = Color.Black;
}
This is what I've gotten so far
FrameLayout GameBoard = (FrameLayout) findViewById(R.id.GameBoard)
for(Button boardPosition : GameBoard)
{
boardPosition.setText("");
boardPosition.setTextColor(Color.BLACK);
}
The error that I'm receiving is just "foreach not applicable to type 'android.widget.Framelayout' "But I'm not sure whats it's replacement or if it has one.