进出口试图涉及小窗口,我如波纹管写的代码:错误的RelativeLayout涉及2插件时
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="90dp"
android:background="@drawable/ad1"
android:orientation="horizontal" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/ad1"
android:orientation="horizontal"
android:layout_toStartOf="@id/bt_menu" > // here there is error !!!!
<EditText
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:hint="Menu "
android:inputType="textVisiblePassword"/>
</RelativeLayout>
<ImageButton
android:id="@+id/bt_menu"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@android:color/transparent"
android:scaleType="fitCenter"
android:src="@drawable/menu5"
android:onClick="menu_onclick"/>
</RelativeLayout>
我在这线上的错误:
机器人:layout_toStartOf =“@ ID/bt_menu”
的错误是:没有资源发现在给定的名字相匹配(在 'layout_toStartOf',值为 '@ ID/bt_menu')
任何人都可以帮助我!
预先感谢您.. Fadel。
感谢y个第一定义ID ou @codeMagic :) :)它帮助了很多:)(y) – BinaryMan
欢迎您 – codeMagic
@codeMagic它不完全是一个eclipse bug它是android解析XML的方式,因为Android studio也存在同样的问题 – reubenjohn