Search in sources :

Example 1 with LayoutParams

use of com.marshalchen.common.uimodule.freeflow.layouts.VGridLayout.LayoutParams 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)

Aggregations

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