In this video, Doug Winnie walks through how to modify widget properties using Design view and the Properties panel, and also directly in XML code using Text view. Doug also introduces the Button component and how to add it to your activity and update properties of it.
- [Instructor] In Android, user interface elements…are called widgets.…Widgets can do several different things,…including interaction for the user,…layout components, and display media,…such as images and video.…If we look at our project, we can look at…the existing widgets that are in our main activity.…Android studio has two main ways were you can work…with your activity layout,…called content_main.xml.…Currently, I'm looking at the text view.…This shows the XML code that defines each of our…layout components.…You'll see we have a relative layout widget,…that contains a single text view widget.…
The text view widget has a number of XML attributes…that are organised on multiple lines.…Although it is on multiple lines,…the XML tag for the text view widget,…is a self closing tag.…It is only the attributes that are listed on multiple lines.…The surrounding relative layout widget has a distinct,…opening tag at the top, and a closing tag at the bottom.…We can adjust properties of our text view,…by entering in XML code.…
- Installing Android Studio
- Coding in Java and XML
- Getting a head start with starter templates
- Working with emulators
- Creating a project, variable, and toast
- Connecting XML widgets to code
- Adding images
- Adding game logic with conditional statements and operators
- Changing the data or design
Skill Level Beginner
1. Android Basics
Test your setup2m 56s
3. The Major Parts
4. Make an App
5. Tinkering with Your App
Next steps1m 4s
- 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.