trying to make this code less messy in android, can anyone help?
- by clayton33
i know that there must be a simpler way of doing this, i just don't understand how java works well enough, and i am struggling. could someone perhaps point me in the right direction?
ImageButton image = (ImageButton) findViewById(R.id.card1);
ImageButton image2 = (ImageButton) findViewById(R.id.card2);
ImageButton image3 = (ImageButton)…