No orientation specified, and the default is horizontal. This is a common source of bugs when ...



No orientation specified, and the default is horizontal. This is a common source of bugs when 

 children are added dynamically.




原因:在原有佈局文件裏直接修改成了linearlayout,但是沒有定義vertical還是horizontal


改正:在屬性設置裏增加android:orientation="vertical"或者android:orientation="horizontal"






發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章