Tuesday, April 30, 2013

RelativeLayout's layout_above gives “No resource found” Error

Problem:

RelativeLayout's layout_above gives “No resource found” Error

Solutions:



android:layout_above="@id/my_button"

Replace to

android:layout_above="@+id/my_button"

Reason For (+) Plus Symbol:

The plus-symbol (+) means that this is a new resource name that must be created and added to our resources (in the R.java file). 

For More Info:
http://developer.android.com/guide/topics/ui/declaring-layout.html

Post a Comment