Layout definition. “You must supply a layout_width attribute.”

前端 未结 7 1738
陌清茗
陌清茗 2020-12-16 10:27

I\'m developing a little android app, and I\'m having a problem with a layout, I been trying to find the error in my xml, but I couldn\'t find it...

The error I\'m

7条回答
  •  心在旅途
    2020-12-16 11:22

    You need to specifiy the width and height of the view. That is a must. For the textview, you are only setting the height and weight. Add

    android:layout_width="0dip"
    

提交回复
热议问题