Advertisement
English transcript
The answer to the first question is that the XML element name is here, TextView.
It follows the open angle bracket.
Then, all the attributes are below the XML element name, and
I've underlined the attribute names here.
They're on the left hand side of the equal sign.
They include android:text, android:textColor, and so on.
If you put the attribute values, like Happy Birthday or the color/white or
black, that's incorrect, because those are the attribute values, and
it's asking for the names.
The last question is, on what line number is a tag closed?
Then we see the forward slash and
the closing angle bracket on the last line, which is line 6.
This means that it's a self-closing tag,
because we open the text view tag here and then we close it right away.
It follows the open angle bracket.
Then, all the attributes are below the XML element name, and
I've underlined the attribute names here.
They're on the left hand side of the equal sign.
They include android:text, android:textColor, and so on.
If you put the attribute values, like Happy Birthday or the color/white or
black, that's incorrect, because those are the attribute values, and
it's asking for the names.
The last question is, on what line number is a tag closed?
Then we see the forward slash and
the closing angle bracket on the last line, which is line 6.
This means that it's a self-closing tag,
because we open the text view tag here and then we close it right away.