Android Utililty Methods View Layout

List of utility methods to do View Layout

Description

The list of methods to do View Layout are organized into topic(s).

Method

voiddoAfterLayout(final View view, final Runnable runnable)
Runs a piece of code after the next layout run
final OnGlobalLayoutListener listener = new OnGlobalLayoutListener() {
    @SuppressWarnings("deprecation")
    @Override
    public void onGlobalLayout() {
        if (hasJellyBean()) {
            view.getViewTreeObserver()
                    .removeOnGlobalLayoutListener(this);
        } else {
...