Android - GridLayout.LayoutParams cannot be cast to RelativeLayout.LayoutParams -
im trying use layoutparams set width , height of relativelayout, error gridlayout.layoutparams cannot cast relativelayout.layoutparams
. i'm using code layoutparams:
relativelayout.layoutparams middlelayoutlayoutparams =(relativelayout.layoutparams)middlelayout.getlayoutparams();
i'm not sure why though. pretty easy solve, set relativelayout.layoutparams
gridlayout.layoutparams
, thing middlelayout relativelayout
, shouldn't cast gridlayout
.
the reason parent of middlelayout
gridlayout
, i'm not sure.
any appreciated.
thanks!
Comments
Post a Comment