Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2015 20:53
Show Gist options
  • Select an option

  • Save anonymous/8bb1c5d7e4d3e434fb10 to your computer and use it in GitHub Desktop.

Select an option

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"
>
@DrMisDan
Copy link
Copy Markdown

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
Copy Markdown

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.

@Heaven-2
Copy link
Copy Markdown

  1. Text View is written with space. which should be TextView.
  2. Line 3 has a unit problem. it should be 150dp.
  3. The background color has a grammar mistake which should be darker_gray instead of darker_groy.
  4. The closing / is missing.

@foziayube0-cyber
Copy link
Copy Markdown

Nice

@MulatuaEjarssa
Copy link
Copy Markdown

MulatuaEjarssa commented Mar 27, 2026

  1. Textview separated

  2. Happy birthday "p" is omitted

  3. dp is omitted

  4. not groy it is gray

  5. closing /> omitted.

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