-
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" | |
> |
1.XML element TextView wont have space in between.
2. Message to display needs correction,just for feeling. ofcourse doesnt generate error
4. must be like 150dp
5. groy must be corrected as gray
6. forwared slash must be there before the angel bracket, like this />
Xml element Text View could not have space in between them line 1
closing bracket is missing for TextView
the word gray is not correct
150 is written without dp
- 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 />
TextView tag should not have space in between.
"dp" is not included for the layout_height value
background color has alphabet error. Should be "darker_gray" not "darker_groy"
The closing tag is missing />