shadows/framework/src/main/java/org/robolectric/shadows/ShadowView.java
public static String visualize(View view) {
    Canvas canvas = new Canvas();
    view.draw(canvas);
    ShadowCanvas shadowCanvas = Shadow.extract(canvas);
    return shadowCanvas.getDescription();
  }
public static String visualize(View view) {
    Canvas canvas = new Canvas();
    view.draw(canvas);
    ShadowCanvas shadowCanvas = Shadow.extract(canvas);
    return shadowCanvas.getDescription();
  }
Returns a textual representation of the appearance of the object.

@param view the view to visualize
@return Textual representation of the appearance of the object.