The android.widget.ImageView class is used to display an image on the screen. The setBackgroundColor method of this class sets the background color of the ImageView.
In this example, we have first obtained an instance of the ImageView using the findViewById method, passing in the ID of the ImageView declared in the XML layout file. We have then set the background color of the ImageView to RED using the setBackgroundColor method.
This code example belongs to the android.widget package library.
Java ImageView.setBackgroundColor - 30 examples found. These are the top rated real world Java examples of android.widget.ImageView.setBackgroundColor extracted from open source projects. You can rate examples to help us improve the quality of examples.