ImageView was added in API Level 1
1. Declare an ImageView.
2. After you declare the ImageView object, add this line below to instantiate it. This will instantiate a new ImageView named myImageView.
myImageView = new ImageView(this);
3. Compile and run!
Popular Posts
- Perform an Action after Enter keypress on EditText
- Save LogCat to a Text File
- android:ellipsize - Add an ellipsis(...) in a TextView
- android:nextFocusDown - Set Next Focus to a TextView/EditText
- Solution: error: Error parsing XML: unbound prefix
- How to Register an Activity that Responds to NFC tags for URI's that point to a URL
- setVisibility() - Hide a TextView, in Java
- android:nextFocusRight - Set the Next Focus Right to a TextView/EditText
- Solution: Running Android Lint has encountered a problem Failed
- Cursor getColumnIndex - Get the Index for a Column Name