在Launcher的workspace中有一个父类强转子类的例子
代码如下: CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
为什么这里可以强转?
我在自己的代码中Eclipse会报错?求教,谢谢!!
代码如下: CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
为什么这里可以强转?
我在自己的代码中Eclipse会报错?求教,谢谢!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货