[英]Can Anyone tell me why the following error occurs - wrong orientation
The error occurs on the linear layout line below - wrong orientation 错误发生在下面的线性布局线上-方向错误
<android.support.v7.internal.widget.ActionBarOverlayLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/action_bar_overlay_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<FrameLayout android:id="@id/action_bar_activity_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
<LinearLayout android:id="@+id/top_action_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="top">
</android.support.v7.internal.widget.ActionBarContainer>
Layoutgravity value depends on the orientation of your linear layout - horizontal or vertical. 布局重力值取决于线性布局的方向-水平或垂直。 Check the orientation of your linear layout.
检查线性布局的方向。 Most likely it is horizontal in which case gravity value of top is not valid
最有可能是水平的,在这种情况下,顶部的重力值无效
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.