一开始用getWidth,getHeight在activity onCreate中获得View的长宽,都是0,其实可以用getlayoutParameter.width,获得View的长。

sshe
14 声望3 粉丝

做人最紧开心!Happy!