Hi. how can we display image using html tag.I used Html.imagegetter to get drawable image.But its not displaying anything.Please help.
textView.setText(Html.fromHtml("<img src=\"image\"/> Text with a " + "<a href=\"http://www.google.com\">link</a> " + "created in the Java source code using HTML.", new Html.ImageGetter() { @Override public Drawable getDrawable(String source) { // TODO Auto-generated method stub if (source.equals("image")) { Log.e("InsideIf", "hello"); Drawable d; d = Link.this.getResources().getDrawable( R.drawable.nonv); Log.e("InsideIf", "hello" + d); return d; } return null; } }, null)); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en