for instance, i made imageview on XML, and i like to make like this.
when I click that image, image is change to another image.
so I want to make image button, how can i do like this?
In my application i created an image view programatically. I created same type of 10 images dynamically. whenever i click the image i want to change the image to another image and If I press it again it turns to previous image. I wrote code for this.
I'm trying to set an image for and image button in android studio, but when I add the image asset it forces the size down to icon sizes instead of the size i made the image (300x450px) the image file is a jpeg. any clue how to make it size the image properly? Forgive me if its something obvious that I'm overlooking this is the first app I've written .