I've been trying to create ImageButtons through Java but idk how, I can only do it on the xml activity screen. Basically, I want a new ImageButton to appear every second in a random place, and each ImageButton disappears when clicked. Any idea how to do that on Java? Thanks. (p.s. it's for an android app).
I know I have to import android.widget.ImageButton;