Android:cliptopadding and Android:clipchildren assume we want to do an effect, the top of the interface is a actionbar and translucent, Actionbar below is a ListView, in the initial state, The ListView is top in the bottom position of the actionbar, but when the ListView scrolls, it can see the contents of the ListView below through Actionbar. At first glance, is not very simple, as long as the setting of margintop or paddingtop can be, but the problem is only one of these two properties, the ListView can not scroll to the paddingtop or margintop part of the area, Some people say that can be solved with headerview, this is one of the methods, but only for this space use Headview a bit wasteful and will affect the position of onitemclick. So here are the two properties that can go to this effect, which is Android: Cliptopadding and Android:clipchildren, these two properties are not used by too many people, here is a description of cliptopadding that the control's drawing area is inside the padding, True if you set the padding then the area to be drawn is indented, clipchildren refers to whether the child control is more than the padding area, these two properties are true by default, so in the case of padding setting, The default scrolling is within the padding, to achieve the above effect mainly set the two properties false then this way the control can be drawn to the padding area. Actionbar translucent will not be detailed, as long as the Actionbar overlay mode is set to True and the Actionbar set a translucent background can
Android Control Area interleaved cliptopadding and Clipchildren