i trying include xml layouts in xml layout file , getting error "the value of attribute "layout" associated element type "include" must not contain '<' character." first time have done include have no clue. here file trying use include.
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <linearlayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical|center_horizontal" android:orientation="horizontal"> <include layout="@layout/water" /> <include layout="@layout/espresso /> </linearlayout> </linearlayout>
and here 1 of layouts including
<imageview android:id="@+id/water" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:src="@drawable/water" android:scaletype="centerinside" />
you forgot quote:
<include layout="@layout/espresso" /> ^
Comments
Post a Comment