Make bitmap drawable tile in x but stretch in y

前端 未结 4 2010
渐次进展
渐次进展 2021-02-09 06:48

I have an image which I\'m using as a background for a RelativeLayout. The image needs to be tiled horizontally to make a pattern.

I\'m able to get the image to tile ho

4条回答
  •  时光说笑
    2021-02-09 07:10

    Having the same problem myself. Tried using 9patch image but it seems you cannot use 9patch images along with tiling, the 9patch stretches the image no matter what you define in the tiling property. At the end what i will do is ask the creator of the image to stretch it vertically or do it myself. I would love a better solution if anyone finds one.

提交回复
热议问题