android上的view的类叫View, 以下是它的class overview, This class represents the basic building block for user interface components. A View occupies a rectangular area on the screen and is responsible for drawing and event handling. View is the base class for wi
废话只重复两句: GONE真的隐藏: INVISIBLE不可见但是预留了View的位置: 网上千篇一律的重复着这两句话并举着例子,并没有观察本质来作区分.查看源码后得知其区别希望广大朋友能够借鉴,源码如下: /* Check if the GONE bit has changed */ if ((changed & GONE) != 0) { needGlobalAttributesUpdate(false); requestLayout(); if (((mViewFlags & VIS
区别一: display:none Turns off the display of an element (it has no effect on layout); all child elements also have their display turned off. //隐藏这个元素;所有的子元素也跟着他隐藏. visibility:hidden The box is invisible (fully transparent, nothing is drawn), but stil