android how to change width and height

前端 未结 6 1120
鱼传尺愫
鱼传尺愫 2020-12-04 19:42

I\'m making a for drawable.

I have my background image, and I want the second layer to be smaller, but it seems that doesn\'t matte

6条回答
  •  攒了一身酷
    2020-12-04 20:17

    From API Level 23 and higher, you can actually set the width & height of an item

    
    

    NOTE: Use android:width and android:height instead of android:layout_width and android:layout_height

提交回复
热议问题