我刚刚开始学习android并且下面的代码似乎是正确的但我收到了错误。请帮忙。
<TextView
android:id="@+id/intro"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Enter some text:"
/>
答案 0 :(得分:8)
确保您已将xmlns:android="http://schemas.android.com/apk/res/android"
添加到第一个XML元素(<xml>
标记之后)。