Search in sources :

Example 1 with FreeFlowLayoutParams

use of com.marshalchen.common.uimodule.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams in project UltimateAndroid by cymcsg.

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.marshalchen.common.uimodule.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams) LayoutParams(com.marshalchen.common.uimodule.freeflow.layouts.VGridLayout.LayoutParams)

Example 2 with FreeFlowLayoutParams

use of com.marshalchen.common.uimodule.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams in project UltimateAndroid by cymcsg.

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.marshalchen.common.uimodule.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams) LayoutParams(com.marshalchen.common.uimodule.freeflow.layouts.HLayout.LayoutParams)

Aggregations

FreeFlowLayoutParams (com.marshalchen.common.uimodule.freeflow.layouts.FreeFlowLayout.FreeFlowLayoutParams)2 LayoutParams (com.marshalchen.common.uimodule.freeflow.layouts.HLayout.LayoutParams)1 LayoutParams (com.marshalchen.common.uimodule.freeflow.layouts.VGridLayout.LayoutParams)1