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

TextView not Text View

android:layout_height="150dp" use dp
gray not groy
use slash(/)

@Carolyrm
Copy link

On the first line, Text View is misspelled, it should be without a space.
In the second line there is a spelling error in the attribute value.
In the fourth line, there is no "dp"
In the fifth line it is misspelled "gray"
Finally, in the last line the "/" sign is missing to close the TextView label

@alicreations
Copy link

Text View is misspelled

@OrdnarlRodrigues
Copy link

The first error is in the title "Text view".
This should be written together and with the second letter of the word in uppercase: "TextView"

The second error in the code is: ">"
without being closed, like this: "/>"

@panqueinthebox
Copy link

Great, I really like the course. I think that the way the explained made me recognize easily the lack of slash for ending the View which was not in camel space format and also different misspelled stuffs.

@shahrukh8391
Copy link

Code is having below errors :

  1. TextView having space in it.
  2. layout_height not having dp unit in it.
  3. Gray spells wrong.
  4. /> not present in the last.

@zaidan08
Copy link

  1. TextView should be used instead of Text View in line 1
  2. Happy should be used instead if happy in line 2
  3. Dp is not mentioned in line 4
  4. Groy should be replaced with gray in line 5
  5. There is no forward slash(/) before the closing bracket in line 6

@helenapont3
Copy link

  1. Text View should be: <TextView
  2. Misspelling of Happy
  3. android: layout_height="150" is missing dp on 150
  4. Misspelling darker_gray
  5. Missing the closing statement /

@bikramkoley
Copy link

1.the view name should be in camelcase and do not contain a space in between
4. in value the unit is missing
6. in closing line / is missing
7. 5.attribute value spelling mistake

@ezaferdinandp
Copy link

1.no space between Text and View you should write TextView
2.on the line layout_height you forget dp
3.you should write grey not groy
4.in the last bracket you should add forward slash for end the instruction

@aljebraschool
Copy link

  1. TextView tag must not have space in between.
  2. "dp" is not included for the layout_height value
  3. background color is not well spelt "darker_gray" not "darker_groy"
  4. the closing tag is missing />

@TaranCode
Copy link

  1. TextView tag should be written in camel case without any space.
  2. Height="150dp"dp should be there to avoid the error.
  3. Closing Tag was not there />
  4. Grey spelling was wrong, it may result in error while processing the background colour.

@Pratikraj001
Copy link

Line 1 : TextView instead of Text View (must be in camelcase).
Line 4: 150dp instead of 150.
Line 5: spelling mistake of gray (gray instead of groy)
Line 6: closing tag i.e, "/>"

@sourya1995
Copy link

  1. TextView is a single word for the view tag
  2. Line 3 should contain 150 dp instead of 150
  3. Background colour should be @android:color/darker_gray
  4. XML tag should be closed

@gulshank99
Copy link

"dp" is missing in layout_height
-in attribute android: background it should be "darker_gray"
-closing tag missing

@YuliiaZain
Copy link

YuliiaZain commented Jul 9, 2022

<TextView <--- CamelCase should be used
android:layout_height="150dp" <-- dp must be written
android:background="@android:color/darker_gray" <--- not grOy
/> <-- missing closing tag

@gvjkumar2004
Copy link

->on line 4 it should be 150dp
->TextView should be the element name without space etc
->/ closing bracket missing
->on line 5 the it should be gray inside string for value of last attribute

@gvjkumar2004
Copy link

  • on line 4 it should be 150dp
  • TextView should be the element name without space etc
  • closing bracket missing
  • on line 5 the it should be gray inside string for value of last attribute

@vamsgithub
Copy link

--the Xml element Text View should not have space in between them (line1)
--closing bracket is missing for TextView(line6)
-- height value should be given 150dp instead of 150(line4)

-- the spelling of grey is wrong groy(line5)

@marcoscjunior
Copy link

1 - O TextView está escrito de maneira errada, pois há um espaçamento.
2 - Na linha 4 está faltando o "dp" ao lado do "150".
3 - A palavra "Gray" está escrita de maneira errada.
4 - Não teve o fechamento da TAG com o "/>"

@FOrellanaB
Copy link

FOrellanaB commented Sep 25, 2022

In line 1: <Text View should be <TextView
In line 4: "150" should be "150dp"
In line 6: > sloud be />

@tarunaksha
Copy link

Corrected:
line 1: TextView, happy
line 4: 150dp
line 6: />

@lalaodder
Copy link

<Text View | Existe un espacio entre ambas palabras, no cumple la consigna "CamelCase".
android:text="Hapy Birthday" | Existe un error ortográfico en la palabra (hapy/happy), pero no altera el funcionamiento del código.
android:layout_width="150dp"
android:layout_height="150" | No tiene asignada la unidad de medida "dp".
android:background="@android:color/darker_groy" | El nombre del color tiene un error ortográfico (groy/gray).
> | El cierre de la etiqueta para el elemento TextView no está escrita de manera correcta, falta el símbolo #slash ("/>").

@Musongtekoro
Copy link

@AlassaneSylla
Copy link

  1. TextView
  2. 150dp
  3. darker_gray
  4. />

@falloulahi
Copy link

1-"Text" et "View" doit être colés ===>ligne 1
2-Il manque "/" avnt le ">" pour fermer la balise ===>ligne 6
3-le nom de la couleur c'est "darker_gray" et non "darker_groy" ===>ligne 5
4-la valeur de "layout_height" dit avoir une unité, "dp" par exemple ===>ligne 4

@djirotechno
Copy link

line 4 expected dp
line 5 expected /
line 5 grey not groy
line 1 TextView not Text View

@AlibekSerikbayev
Copy link

@SanaDeveloper99
Copy link

TextView

@ruslanmalikov87
Copy link

Missing the closing statement /

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