-
Star
(106)
You must be signed in to star a gist -
Fork
(96)
You must be signed in to fork a gist
-
-
Save anonymous/8bb1c5d7e4d3e434fb10 to your computer and use it in GitHub Desktop.
<Text View | |
android:text="Hapy Birthday" | |
android:layout_width="150dp" | |
android:layout_height="150" | |
android:background="@android:color/darker_groy" | |
> |
YibeltalK
commented
Dec 18, 2024
- We should not have a space in the TextView element: <TextView
- A typo: android:text="Happy Birthday"
- No error on line 3: android:layout_width="150dp"
- Missing dp after 150: android:layout_height="150dp"
- Spelling error of dark_gray: android:background="@android:color/dark_gray"
- Missing forwardslash before the closing angle bracket to close the TextView element: />
there is a space between TextView at the first line 2,there is no dp next to 150 at the fourth line 3,the word at the fifth line and at the final must be gray but it is groy 4,the ending of the tag is like this > but it must be />
Line 1: TextView should not have space between it.
Line 2: Happy is not spelled correctly. There is no XML syntax error though.
Line 4: dp is missing in 150.
Line5: gray is not spelled right.
Line6: / is missing before>.
Errors
- There is a space in between the "TextView" keyword.
- The "150" don't have the unit "dp".
- The color "darker_groy" is not recognized as a color.
- There is no closing tag on the last line.
Good to learn more
There is no closing tag on the last line
there is a space between TextView at the first line 2,there is no dp next to 150 at the fourth line 3,the word at the fifth line and at the final must be gray but it is groy 4,the ending of the tag is like this > but it must be />
Good
there is a space between TextView at the first line 2,there is no dp next to 150 at the fourth line 3,the word at the fifth line and at the final must be gray but it is groy 4,the ending of the tag is like this > but it must be />
there is a space between TextView at the first line 2,there is no dp next to 150 at the fourth line 3,the word at the fifth line and at the final must be gray but it is groy 4,the ending of the tag is like this > but it must be />
1.Space between Text and View
2.Unit is missing in line 3
3./ is missing
4.The spelling of gray is wrong
textview but you wroteit by having spece between Text and view android layout_high:150 instead of 150 dp
android:color/darker-groy instead of gray and the last closing tag of textview
Line 1- it should be written in CamelCase with no space, like <TextView
Line 2- attribute value has grammar error, "Happy Birthday"
Line 4- attribute value has no measurement unit, so add dp
Line 5- attribute value spelling error, darker_gray
Line 6- the forward / before the closing angle is missing
The tag name is invalid: it should be TextView instead of Text View. The closing tag is also missing the forward slash (/) before the closing angle bracket. In addition, the unit dp is missing. Finally, the background color is invalid; it should be darker_gray instead of darker_groy.