public final class HumanReadables
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
describe(android.view.View v)
Transforms an arbitrary view into a string with (hopefully) enough debug info.
|
static java.lang.String |
getViewHierarchyErrorMessage(android.view.View rootView,
Prints out an error message feature the view hierarchy starting at the rootView.
|
public static java.lang.String getViewHierarchyErrorMessage(android.view.View rootView,problemViews, java.lang.String errorHeader, problemViewSuffix)
rootView
- the root of the hierarchy tree to print out.problemViews
- list of the views that you would like to point out are causing the error
message.errorHeader
- the header of the error message (should contain the description of why the
error is happening).problemViewSuffix
- the message to append to the view description in the tree printout.
Required if problemViews is supplied.public static java.lang.String describe(android.view.View v)
v
- nullable view