My button is:
<Button
android:text=""
android:id="@+id/b1"
android:gravity="center_horizontal"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="@drawable/the_border"
android:textSize="75sp"/>
And I have many of them (b0, b1, b2)...
My java:
for(int index = 0; index < 9; index++)
{
places[index] = (Button) findViewById(R.id.b + index);
places[index].setOnClickListener(this);
}
How could I do this? findViewById(R.id.b + index) needs to be changed. Is it possible? Thanks