
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" > 展开
显示有错误
错误原因:
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" > 展开
2个回答
展开全部
Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has multiple children
LinearLayout 布局是线性布局,需要设置orientation属性,表示是横向还是纵向
LinearLayout 布局是线性布局,需要设置orientation属性,表示是横向还是纵向
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询