您的位置:首页 > 产品设计 > UI/UE

怎样解决错误:error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value

2015-04-13 16:57 716 查看
错误分析,要是这个控件左边添加控件,必须要在这个控件声明时候。

<RelativeLayout

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_centerVertical="true"

android:layout_toLeftOf="@id/MoringDiary_interpersonal_next"

android:text="下一个"

android:textColor="#ffffff"

android:textSize="14dip" />

<Button

android:id="@+id/MoringDiary_interpersonal_next"

android:layout_width="30dp"

android:layout_height="30dp"

android:layout_alignParentRight="true"

android:layout_centerVertical="true"

android:layout_marginRight="3dp"

android:background="@drawable/ic_launcher" />

</RelativeLayout>

所以应该改为Button应该写在TextView之前。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐