Skip to content

Instantly share code, notes, and snippets.

@etithakur
Forked from anonymous/sample
Created July 19, 2021 14:20
Show Gist options
  • Save etithakur/1394327cdedc19a91b5ee77a10235553 to your computer and use it in GitHub Desktop.
Save etithakur/1394327cdedc19a91b5ee77a10235553 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"
>
@etithakur
Copy link
Author

Following are the changes that has to be done:

  1. There should not be any gap between Text and View in line 1.
  2. In line 4, Unit of height should be written after 150 which is dp.
  3. In line 5, the spelling of gray is wrong, Android uses the American-English spelling of the word "gray".
  4. In line 6, forward slash( / ) should be used in order to close TextView tag.

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