package com.ikea.kompis.products;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

public class ProductGridViewItemLayout extends LinearLayout
{
  private static int[] mMaxRowHeight;
  private static int mNumColumns;
  private int mPosition;

  public ProductGridViewItemLayout(Context paramContext)
  {
    super(paramContext);
  }

  public ProductGridViewItemLayout(Context paramContext, AttributeSet paramAttributeSet)
  {
    super(paramContext, paramAttributeSet);
  }

  public static void initItemLayout(int paramInt1, int paramInt2)
  {
    mNumColumns = paramInt1;
    mMaxRowHeight = new int[paramInt2];
  }

  protected void onMeasure(int paramInt1, int paramInt2)
  {
    super.onMeasure(paramInt1, paramInt2);
    if ((mNumColumns <= 1) || (mMaxRowHeight == null))
      return;
    int i = this.mPosition / mNumColumns;
    int j = getMeasuredHeight();
    if (j > mMaxRowHeight[i])
      mMaxRowHeight[i] = j;
    setMeasuredDimension(getMeasuredWidth(), mMaxRowHeight[i]);
  }

  public void setPosition(int paramInt)
  {
    this.mPosition = paramInt;
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.ikea.kompis.products.ProductGridViewItemLayout
 * JD-Core Version:    0.6.2
 */