做的是计算器的界面,对计算机的布局进行的设计,时组件填充计算器的父容器

在这儿
//指定该组建占满父容器

params.setGravity(Gravity.FILL);

我使用的时候 出现了 这个问题:The method setGravity(int) in the type GridLayout.LayoutParams is not applicable for the arguments (GridLayout.Alignment)
说是 类型不符,使用不了 ,该怎么修改?