0
我activity_main.xml中文件看起来像这样:在XML声明下面的“版本”必须是引用字符串
<?xml version=”1.0” encoding=”utf-8”?>
<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”
android:layout_width=”fill_parent”
android:layout_height=”fill_parent”
android:orientation=”vertical” >
<TextView
android:id=”@+id/mytext”
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”@string/hello” />
</LinearLayout>
我应该怎么解决这个问题?
当您刚刚获得文本时,您无法在提供屏幕截图时使用*。当它是一个屏幕截图的链接时,这是非常恼人的 - 我意识到这是因为您没有发布内联屏幕截图的代表。但*请*直接将XML放入问题中,就好像它是代码一样。接下来,请提供有关错误的更多详细信息。不要只依赖上下文的标题。 – 2014-11-23 09:20:17
嗯,它不起作用粘贴代码,因为“您的文章似乎包含代码格式不正确的代码...” – Dennis 2014-11-23 11:06:57