Search in sources :

Example 1 with FreeFlowLayoutParams

use of com.comcast.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams in project FreeFlow by Comcast.

the class VLayout method setLayoutParams.

@Override
public void setLayoutParams(FreeFlowLayoutParams params) {
    if (params.equals(this.layoutParams)) {
        return;
    }
    LayoutParams lp = (LayoutParams) params;
    this.itemHeight = lp.itemHeight;
    this.headerWidth = lp.headerWidth;
    this.headerHeight = lp.headerHeight;
    cellBufferSize = bufferCount * cellBufferSize;
}
Also used : FreeFlowLayoutParams(com.comcast.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams) LayoutParams(com.comcast.freeflow.layouts.HLayout.LayoutParams)

Example 2 with FreeFlowLayoutParams

use of com.comcast.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams in project FreeFlow by Comcast.

the class HGridLayout method setLayoutParams.

@Override
public void setLayoutParams(FreeFlowLayoutParams params) {
    if (params.equals(this.layoutParams)) {
        return;
    }
    LayoutParams lp = (LayoutParams) params;
    this.itemWidth = lp.itemWidth;
    this.itemHeight = lp.itemHeight;
    this.headerWidth = lp.headerWidth;
    this.headerHeight = lp.headerHeight;
    cellBufferSize = bufferCount * cellBufferSize;
}
Also used : FreeFlowLayoutParams(com.comcast.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams) LayoutParams(com.comcast.freeflow.layouts.VGridLayout.LayoutParams)

Aggregations

FreeFlowLayoutParams (com.comcast.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams)2 LayoutParams (com.comcast.freeflow.layouts.HLayout.LayoutParams)1 LayoutParams (com.comcast.freeflow.layouts.VGridLayout.LayoutParams)1