Why would layout_width=“wrap_content” take up the entire width of the screen?

前端 未结 3 1743
梦如初夏
梦如初夏 2021-01-29 02:46

With this xml:


    
3条回答
  •  暖寄归人
    2021-01-29 03:21

    Have you looked at this question?

    Button width in Android TableLayout

    The issue could be caused by using android:stretchColumns="*" in your TableLayout, but it is difficult to tell without the rest of your XML.

提交回复
热议问题