eclipse linearlayout问题

输入<LinearLayoutxmlns:android="http:(xx)//schemas.android.com/apk/res/android"显示有错误错误原... 输入<LinearLayout xmlns:android="http: (xx)//schemas.android.com/apk/res/android"
显示有错误
错误原因:
Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children
where at least one has layout_width="match_parent"
这是怎么回事,如何解决
<LinearLayout xmlns:android="http:(xx)//schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_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="mars.activity.Activity01" >
展开
 我来答
潮浦秋梵0H7
2014-08-29 · 超过16用户采纳过TA的回答
知道答主
回答量:23
采纳率:0%
帮助的人:27.4万
展开全部
Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children

LinearLayout 布局是线性布局,需要设置orientation属性,表示是横向还是纵向
鹛尌曶
2014-08-29 · 超过56用户采纳过TA的回答
知道答主
回答量:106
采纳率:0%
帮助的人:142万
展开全部
都是出现hello world !因为布局文件一样。
求采纳为满意回答。
追问
用linearlayout显示错误啊,用相对布局就没事!后面是那段代码,再加上
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式