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

前端 未结 7 1611
陌清茗
陌清茗 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:02

    i think u have not put dp after width size .what why your code might not be working. ex android:layout_weight="20" use this android:layout_weight="20dp"

提交回复
热议问题