svg-android を使用して、レイアウトの背景として SVG 画像を読み込みたいと思います。これを試しましたが、レイアウトの背景はまだ白です (logcat では特別なことは何もありません):
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
SVG svg = SVGParser.getSVGFromResource(getResources(), R.raw.bg);
RelativeLayout rl = (RelativeLayout) findViewById(R.id.mainLay);
rl.setBackground(svg.createPictureDrawable());
}
私は何を間違っていますか?