/** * Dumps the status of this {@code View} to {@code System.out} */ public void dump() { dump(System.out, 0); }
/** * Emits an xml-like representation of the view to System.out. * * @param view the view to dump */ @SuppressWarnings("UnusedDeclaration") public static void dump(View view) { ShadowView shadowView = Shadow.extract(view); shadowView.dump(); }
private View findView(View view, String resourceName) { View subView = view.findViewById(getInternalResourceId(resourceName)); if (subView == null) { ByteArrayOutputStream buf = new ByteArrayOutputStream(); ShadowView shadowView = Shadow.extract(view); shadowView.dump(new PrintStream(buf), 4); throw new IllegalArgumentException("no id." + resourceName + " found in view:\n" + buf.toString()); } return subView; } }
/** * Dumps the state of this {@code ViewGroup} to {@code System.out}. */ @Override public void dump(PrintStream out, int indent) { dumpFirstPart(out, indent); if (realViewGroup.getChildCount() > 0) { out.println(">"); for (int i = 0; i < realViewGroup.getChildCount(); i++) { View child = realViewGroup.getChildAt(i); ShadowView shadowChild = Shadow.extract(child); shadowChild.dump(out, indent + 2); } dumpIndent(out, indent); out.println("</" + realView.getClass().getSimpleName() + ">"); } else { out.println("/>"); } }
/** * Dumps the status of this {@code View} to {@code System.out} */ public void dump() { dump(System.out, 0); }
/** * Dumps the status of this {@code View} to {@code System.out} */ public void dump() { dump(System.out, 0); }
/** * Dumps the status of this {@code View} to {@code System.out} */ public void dump() { dump(System.out, 0); }
/** * Dumps the status of this {@code View} to {@code System.out} */ public void dump() { dump(System.out, 0); }
/** * Emits an xml-like representation of the view to System.out. * * @param view the view to dump */ @SuppressWarnings("UnusedDeclaration") public static void dump(View view) { shadowOf(view).dump(); }
/** * Emits an xml-like representation of the view to System.out. * * @param view the view to dump */ @SuppressWarnings("UnusedDeclaration") public static void dump(View view) { shadowOf(view).dump(); }
/** * Emits an xml-like representation of the view to System.out. * * @param view the view to dump */ @SuppressWarnings("UnusedDeclaration") public static void dump(View view) { ShadowView shadowView = Shadow.extract(view); shadowView.dump(); }
/** * Emits an xml-like representation of the view to System.out. * * @param view the view to dump */ @SuppressWarnings("UnusedDeclaration") public static void dump(View view) { shadowOf(view).dump(); }
private View findView(View view, String resourceName) { View subView = view.findViewById(getInternalResourceId(resourceName)); if (subView == null) { ByteArrayOutputStream buf = new ByteArrayOutputStream(); Shadows.shadowOf(view).dump(new PrintStream(buf), 4); throw new IllegalArgumentException("no id." + resourceName + " found in view:\n" + buf.toString()); } return subView; } }
private View findView(View view, String resourceName) { View subView = view.findViewById(getInternalResourceId(resourceName)); if (subView == null) { ByteArrayOutputStream buf = new ByteArrayOutputStream(); ShadowView shadowView = Shadow.extract(view); shadowView.dump(new PrintStream(buf), 4); throw new IllegalArgumentException("no id." + resourceName + " found in view:\n" + buf.toString()); } return subView; } }
private View findView(View view, String resourceName) { View subView = view.findViewById(getInternalResourceId(resourceName)); if (subView == null) { ByteArrayOutputStream buf = new ByteArrayOutputStream(); Shadows.shadowOf(view).dump(new PrintStream(buf), 4); throw new IllegalArgumentException("no id." + resourceName + " found in view:\n" + buf.toString()); } return subView; } }
/** * Dumps the state of this {@code ViewGroup} to {@code System.out}. */ @Override public void dump(PrintStream out, int indent) { dumpFirstPart(out, indent); if (realViewGroup.getChildCount() > 0) { out.println(">"); for (int i = 0; i < realViewGroup.getChildCount(); i++) { View child = realViewGroup.getChildAt(i); Shadows.shadowOf(child).dump(out, indent + 2); } dumpIndent(out, indent); out.println("</" + realView.getClass().getSimpleName() + ">"); } else { out.println("/>"); } }
/** * Non-Android method that dumps the state of this {@code ViewGroup} to {@code System.out} */ @Override public void dump(PrintStream out, int indent) { dumpFirstPart(out, indent); if (realViewGroup.getChildCount() > 0) { out.println(">"); for (int i = 0; i < realViewGroup.getChildCount(); i++) { View child = realViewGroup.getChildAt(i); Shadows.shadowOf(child).dump(out, indent + 2); } dumpIndent(out, indent); out.println("</" + realView.getClass().getSimpleName() + ">"); } else { out.println("/>"); } }
/** * Non-Android method that dumps the state of this {@code ViewGroup} to {@code System.out} */ @Override public void dump(PrintStream out, int indent) { dumpFirstPart(out, indent); if (realViewGroup.getChildCount() > 0) { out.println(">"); for (int i = 0; i < realViewGroup.getChildCount(); i++) { View child = realViewGroup.getChildAt(i); Shadows.shadowOf(child).dump(out, indent + 2); } dumpIndent(out, indent); out.println("</" + realView.getClass().getSimpleName() + ">"); } else { out.println("/>"); } }
/** * Dumps the state of this {@code ViewGroup} to {@code System.out}. */ @Override public void dump(PrintStream out, int indent) { dumpFirstPart(out, indent); if (realViewGroup.getChildCount() > 0) { out.println(">"); for (int i = 0; i < realViewGroup.getChildCount(); i++) { View child = realViewGroup.getChildAt(i); ShadowView shadowChild = Shadow.extract(child); shadowChild.dump(out, indent + 2); } dumpIndent(out, indent); out.println("</" + realView.getClass().getSimpleName() + ">"); } else { out.println("/>"); } }