com.dopanic.panicarkit.lib
Class PARLayoutManager

java.lang.Object
  extended by ViewGroup
      extended by com.dopanic.panicarkit.lib.PARLayoutManager

public class PARLayoutManager
extends ViewGroup

todo: this is unnecessary ...? Check Created by helmi on 19.02.14.


Nested Class Summary
static class PARLayoutManager.LayoutParams
          Custom per-child layout information.
 
Constructor Summary
PARLayoutManager(Context context)
          Constructor
PARLayoutManager(Context context, AttributeSet attrs)
          Constructor
PARLayoutManager(Context context, AttributeSet attrs, int defStyle)
           
 
Method Summary
protected  boolean checkLayoutParams(ViewGroup.LayoutParams p)
           
protected  PARLayoutManager.LayoutParams generateDefaultLayoutParams()
           
 PARLayoutManager.LayoutParams generateLayoutParams(AttributeSet attrs)
           
protected  ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)
           
protected  void onLayout(boolean changed, int left, int top, int right, int bottom)
          Position all children within this layout.
protected  void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
          Ask all children to measure themselves and compute the measurement of this layout based on the children.
 boolean shouldDelayChildPressedState()
          Any layout manager that doesn't scroll will want this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PARLayoutManager

public PARLayoutManager(Context context)
Constructor

Parameters:
context - Application context

PARLayoutManager

public PARLayoutManager(Context context,
                        AttributeSet attrs)
Constructor

Parameters:
context - Application context
attrs - Attribute set

PARLayoutManager

public PARLayoutManager(Context context,
                        AttributeSet attrs,
                        int defStyle)
Method Detail

shouldDelayChildPressedState

public boolean shouldDelayChildPressedState()
Any layout manager that doesn't scroll will want this.


onMeasure

protected void onMeasure(int widthMeasureSpec,
                         int heightMeasureSpec)
Ask all children to measure themselves and compute the measurement of this layout based on the children.


onLayout

protected void onLayout(boolean changed,
                        int left,
                        int top,
                        int right,
                        int bottom)
Position all children within this layout.


generateLayoutParams

public PARLayoutManager.LayoutParams generateLayoutParams(AttributeSet attrs)

generateDefaultLayoutParams

protected PARLayoutManager.LayoutParams generateDefaultLayoutParams()

generateLayoutParams

protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)

checkLayoutParams

protected boolean checkLayoutParams(ViewGroup.LayoutParams p)



Copyright © 2014 doPanic GmbH. All rights reserved.