我想在 android 的 x 轴上重复图像。我目前正在使用此代码
BitmapDrawable bitmapDrawable = new BitmapDrawable(bmp);
bitmapDrawable.setTileModeXY(Shader.TileMode.REPEAT, null);
LinearLayout layout = findViewById(R.id.ll);
layout.setBackgroundDrawable(bitmapDrawable);
谁能告诉我解决方案?