<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ListView
android:layout_above="@id/btn_4" <-- this line error: No resource found
android:layout_width="match_parent"
android:layout_height="200dp" />
<Button android:id="@+id/btn_4" <-- I declare the id here
android:layout_alignParentBottom="true"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
</RelativeLayout>
Any suggestions?
When you declare relative layouts, you have to use android:layout_above="@+id/layoutToBeAbove"
Otherwise, the system does not know what you're pointing at.
This declaration will point at the same resource.
Hope this helped!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With