Code example for PictureDrawable

0
    /** 
     * Create a picture drawable from the SVG. 
     * @return the PictureDrawable. 
     */ 
    public PictureDrawable createPictureDrawable() { 
        return new PictureDrawable(picture); 
//        return new PictureDrawable(picture) { 
//            @Override 
//            public int getIntrinsicWidth() { 
//                if (bounds != null) { 
//                    return (int) bounds.width(); 
//                } else if (limits != null) { 
//                    return (int) limits.width(); 
//                } else { 
//                    return -1; 
//                } 
//            } 
// 
//            @Override 
//            public int getIntrinsicHeight() { 
//                if (bounds != null) {