GridLayout.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:kora 作者:
@Override
protected void attachLayoutAnimationParameters(View child,
        ViewGroup.LayoutParams params, int index, int count)
{

    GridLayoutAnimationController.AnimationParameters animationParams =
            (GridLayoutAnimationController.AnimationParameters)
                    params.layoutAnimationParameters;

    if (animationParams == null) {
        animationParams = new GridLayoutAnimationController.AnimationParameters();
        params.layoutAnimationParameters = animationParams;
    }

    animationParams.count = count;
    animationParams.index = index;
    animationParams.columnsCount = mNumColumns;
    animationParams.rowsCount = mNumRows;

    animationParams.column = index % mNumColumns;
    animationParams.row = index / mNumColumns;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号