How to make random images load in ImageView? (Android)
问题 I'm a begginer Android Developer And in my app I want to make a random image load out of a list of images every time then app is launched. Genneraly, I want to use ImageView because its simple, but you have to mention what image to load in the layout file or main.XML. I don't know how to do this so please help. :-) 回答1: It's not required to set the image in the .xml file Say, you have an ImageView in your layout (say its main.xml) main.xml <ImageView> android:id="@id+/myImageView" </ImageView