How to wrap content views rather than background drawable?

前端 未结 5 1376
攒了一身酷
攒了一身酷 2020-12-06 04:48

How can I get a LinearLayout (or any other ViewGroup) to assume the size of it\'s child views rather than assuming the size of the background image?



        
5条回答
  •  既然无缘
    2020-12-06 05:12

    If your image lends itself to being converted to a scalable 9-patch image, then doing that would cause the background to scale around the TextView.

提交回复
热议问题