[英]Multiple annotations found at this line: - error: No resource identifier found for attribute 'layout_alignBaseLine' in package 'android'
Here is my .xml code it says "Multiple annotations found at this line: - error: No resource identifier found for attribute 'layout_alignBaseLine' in package 'android'". 这是我的.xml代码,上面写着“在此行找到了多个注释:-错误:在包android中找不到属性'layout_alignBaseLine'的资源标识符”。 I don't know why this problem occurred.
我不知道为什么会发生这个问题。 Someone help me.
谁来帮帮我。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.relativelayout.MainActivity" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseLine="@+id/button1"
/>
<EditText
android:id="@+id/editText1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignBaseLine="@+id/button1"
android:layout_toLeftOf="@+id/textView1"
android:layout_toStartOf="@+id/texView1"
android:layout_toRightOf="@+id/button1"
android:layout_toEndOf="@+id/button1"
/>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"/>
</RelativeLayout>
应该有layout_alignBaseline
而不是layout_alignBaseLine
第二个l字母应该是小写
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.