The ImageView component is used to present images at runtime. Images are typically stored as application resources. Learn how to add an image and how to manage its size.
- Android supports the use of images…in a variety of formats.…You can use traditional web-based formats…such as PNG or JPG files.…But there's some better formats…that are either smaller…than those traditional files…or are vector graphics that adjust elegantly…to different screen sizes and pixel densities.…To demonstrate the use of images,…I'll start in my content main.xml file.…This is the nested layout file.…I'll change this text view in a couple of ways.…First of all,…I'm going to add a unique ID.…
Every view component that you want to refer…to programmatically or within the layout file…needs this unique identifier.…The ID always starts with '@+id/',…and then the ID should be all lowercase.…Use underscores if you need…to separate any words.…I'm going to call this headline.…Then I'm going to change this text…to my favorite monster.…I'll adjust some of these attributes…so this is a little bit easier to read.…
And now I'm ready to display an image.…You display images using a component called…an image view.…To display the image,…
- Installing Android Studio
- Creating your first Android Studio project
- Managing configuration files, including Gradle scripts
- Defining screens with activities
- Implementing designs in XML layouts
Skill Level Beginner
Android Studio Essential Trainingwith David Gassner2h 28m Beginner
Android P First Look for Developerswith David Gassner36m 30s Beginner
What you should know2m 10s
1. Android Development Fundamentals
2. Getting Started
3. Explore Android Projects
4. Android App Architecture
Next steps1m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.