FileDocCategorySizeDatePackage
QSContainer.javaAPI DocAndroid 5.1 API2384Thu Mar 12 22:22:42 GMT 2015com.android.systemui.qs

QSContainer

public class QSContainer extends android.widget.FrameLayout
Wrapper view with background which contains {@link QSPanel}

Fields Summary
private int
mHeightOverride
private QSPanel
mQSPanel
Constructors Summary
public QSContainer(android.content.Context context, android.util.AttributeSet attrs)


         
        super(context, attrs);
    
Methods Summary
public intgetDesiredHeight()
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 voidonFinishInflate()

        super.onFinishInflate();
        mQSPanel = (QSPanel) findViewById(R.id.quick_settings_panel);
    
protected voidonLayout(boolean changed, int left, int top, int right, int bottom)

        super.onLayout(changed, left, top, right, bottom);
        updateBottom();
    
public voidsetHeightOverride(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.

param
heightOverride the overridden height

        mHeightOverride = heightOverride;
        updateBottom();
    
private voidupdateBottom()

        int height = mHeightOverride != -1 ? mHeightOverride : getMeasuredHeight();
        setBottom(getTop() + height);