標籤 Error 下的所有文章

[Android][Layout][Error] No orientation specified, and the default is horizontal. This is a common source of bugs when children are added dynamically.

編輯軟體:Eclipse
Android SDK版本:API 20.0
訊息:[Error] No orientation specified, and the default is horizontal. This is a common source of bugs when children are added dynamically.

20141012001-1
出現此錯誤是LinearLayout沒有指定方向,只要指定水平方向還是垂直方向即可排除。

垂直
android:orientation = “vertical”
水平
android:orientation = “horizontal”

範例(水平):

20141012001-2