码迷,mamicode.com
首页 > 其他好文 > 详细

My Code Review

时间:2017-03-24 19:56:42      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:res   specific   错误   for   androi   orm   height   相对布局   version   

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
(错误标志在这里,
Multiple annotations found at this line:
- This LinearLayout layout or its RelativeLayout parent is useless
- error: Error parsing XML: not well-formed (invalid token)
- Element type "RelativeLayout" must be followed by either attribute specifications, ">" 
or "/>".这个错误怎么回事?
)<LinearLayout

android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText 
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/> 
<LinearLayout

android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="right">
<Button 
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Yes"
/>
<Button 
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="No"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>

把相对布局删掉

My Code Review

标签:res   specific   错误   for   androi   orm   height   相对布局   version   

原文地址:http://www.cnblogs.com/yuhouwuqiong/p/6613105.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!