Nyamekye Nti Emmanuel
Nyamekye Nti Emmanuel

Reputation: 19

App not launching

When i put this in my codes, it prevent my app from launching.

<view
     android:layout_width="match parent"
     android:layout_height="1dp"
     android: background="@color/light gray"
     android:layout_margin="10dp" />

Upvotes: 0

Views: 53

Answers (2)

Psypher
Psypher

Reputation: 10829

It has to be capital V like View not view

<View
 android:layout_width="match_parent"
 android:layout_height="1dp"
 android:background="@color/light_gray"
 android:layout_margin="10dp" />

Here is more details on View class. Click here

Upvotes: 1

Adi219
Adi219

Reputation: 4814

Simple!

You just need to change android: background="@color/light gray" to android:background="@color/light gray"!

Your code isn't working as there shouldn't be a space after android:, so you should remove the space after it.

EDIT (based on the comment):

You should also use underscores instead of spaces in "match parent" and "light gray".

Upvotes: 0

Related Questions