androidsvg icon indicating copy to clipboard operation
androidsvg copied to clipboard

Issue with Edittext

Open cAutthpon opened this issue 9 years ago • 2 comments

I convert svg to PictureDrawable and use with Edittext but not working

try{
     SVG svg = SVG.getFromResource(act, R.raw.svgfile);
     EditText etxt = (EditText) findViewById(R.id.etxt);
     etxt.setCompoundDrawables(new PictureDrawable(svg.renderToPicture(80, 80)), null, null, null);
}catch(SVGParseException e){
     e.printStackTrace();
}

cAutthpon avatar Sep 20 '16 05:09 cAutthpon

Thanks for your report. What does "not working" mean exactly?

BigBadaboom avatar Sep 20 '16 05:09 BigBadaboom

What does "not working" mean exactly?

Image not show on Edittext and same Button. But now i use ImageView above it http://www.mx7.com/view2/znn271GCvrfat2gW

cAutthpon avatar Sep 23 '16 04:09 cAutthpon