I have a TextView
and a bitmap that can only be repeated horizontally. I want to set the background of my text and repeat it only along the X axis. Looking around, I saw that you can only do this with code, not XML. I created BitmapDrawable
using :,
BitmapDrawable bg = new BitmapDrawable(r, BitmapFactory.decodeResource(r, R.drawable.my_drawable)); bg.setTileModeX(Shader.TileMode.REPEAT); setBackgroundDrawable(bg);
However, even with this method, pulling is also repeated along the Y axis. This is in Honeycomb 3.2.
Can someone shed light on this, maybe an example of his work?
source share