Problem with 9 patch image as background

后端 未结 4 1647
轮回少年
轮回少年 2021-01-02 09:39

I have a list view structure, with Relative layout that uses alternating background images for odd/even elements. I\'m trying to set the background drawable dynamically by c

4条回答
  •  时光取名叫无心
    2021-01-02 10:20

    You can use nine patch in the same way you use a normal drawable. I assume you have a problem with the 9 patch itself. In the /tools directory of your android sdk you have the draw 9 patch tool. It will help you to correct your 9 patch drawable and to preview it for different sizes of your view.

提交回复
热议问题