package com.stanfy.views;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

/**
 * Layout with overlapping.
 * @author Roman Mazur (Stanfy - http://www.stanfy.com)
 */
public class OverlapLinearLayout extends LinearLayout {

  public OverlapLinearLayout(final Context context) {
    super(context);
    init();
  }

  public OverlapLinearLayout(final Context context, final AttributeSet attrs) {
    super(context, attrs);
    init();
  }

  private void init() {
    setChildrenDrawingOrderEnabled(true);
  }

  @Override
  protected int getChildDrawingOrder(final int childCount, final int i) { return childCount - i - 1; }

}

@@ -135,87 +135,99 @@
  * L
-ayout with overlapping.%0A * @author Roman Mazur (Stanfy - http://www.stanfy.com)
+inear layout that enables overlapping first children over last ones using negative margins.
 %0A */

make docs more clear