开发者

error:ERROR parsing XML: unbound prefix in line 2

开发者 https://www.devze.com 2023-03-23 23:22 出处:网络
here is my code...everything should be correct though??? <?xml version=\"1.0\" encoding=\"utf-8\"?>

here is my code...everything should be correct though???

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com开发者_JS百科/apk/res/android"


In this code there is no error

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  />

But you have to set width and height of any container view. so this can be like this

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent">
</LinearLayout>
0

精彩评论

暂无评论...
验证码 换一张
取 消