if (Log.isLoggable(TAG, Log.VERBOSE)) { Log.v(TAG, "OnGlobalLayoutListener called attachStateListener=" + this); } Can the above printing in the ViewTarget class be optimized? The printing is too crazy and seriously affects performance