QSContainerpublic class QSContainer extends android.widget.FrameLayout Wrapper view with background which contains {@link QSPanel} |
Fields Summary |
---|
private int | mHeightOverride | private QSPanel | mQSPanel |
Methods Summary |
---|
public int | getDesiredHeight()The height this view wants to be. This is different from {@link #getMeasuredHeight} such that
during closing the detail panel, this already returns the smaller height.
if (mQSPanel.isClosingDetail()) {
return mQSPanel.getGridHeight() + getPaddingTop() + getPaddingBottom();
} else {
return getMeasuredHeight();
}
| protected void | onFinishInflate()
super.onFinishInflate();
mQSPanel = (QSPanel) findViewById(R.id.quick_settings_panel);
| protected void | onLayout(boolean changed, int left, int top, int right, int bottom)
super.onLayout(changed, left, top, right, bottom);
updateBottom();
| public void | setHeightOverride(int heightOverride)Overrides the height of this view (post-layout), so that the content is clipped to that
height and the background is set to that height.
mHeightOverride = heightOverride;
updateBottom();
| private void | updateBottom()
int height = mHeightOverride != -1 ? mHeightOverride : getMeasuredHeight();
setBottom(getTop() + height);
|
|