Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2015 20:53
Show Gist options
  • Save anonymous/8bb1c5d7e4d3e434fb10 to your computer and use it in GitHub Desktop.
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"
>
@Asnake2
Copy link

Asnake2 commented Jul 10, 2025

1.Space between Text and View
2.Unit is missing in line 3
3./ is missing
4.The spelling of gray is wrong

@Osmanesmeal
Copy link

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

@DrMisDan
Copy link

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

@mkhulisi
Copy link

mkhulisi commented Aug 26, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment