ImageGetter imageGetter = new ImageGetter() { @Override public Drawable getDrawable(String arg0) { if (arg0 != null) { // TODO Auto-generated method stub BitmapDrawable _returnDrawable = (BitmapDrawable) getResources() .getDrawable(R.drawable.name); _returnDrawable.setBounds(0, 0, _returnDrawable.getIntrinsicWidth(), _returnDrawable.getIntrinsicHeight()); return _returnDrawable; } else { return null; } } }; TagHandler:当HTML的解释器不知到如何解释的时候,这个类可以一一列出HTML的标签元素 TagHandler tagHandler = new TagHandler() { @Override public void handleTag(boolean arg0, String arg1, Editable arg2, XMLReader arg3) { // TODO Auto-generated method stub Toast.makeText(FormWidgetActivity.this, arg1, 2000).show(); } };
原文地址:http://blog.csdn.net/qq_22075977/article/details/46417621