¡@

Home 

2014/10/16 ¤W¤È 08:18:59

android Programming Glossary: mcontentheight

How to implement expandable panels in Android?

http://stackoverflow.com/questions/5165682/how-to-implement-expandable-panels-in-android

mExpanded true private int mCollapsedHeight 0 private int mContentHeight 0 public ExpandablePanel Context context this context null public.. onMeasure int widthMeasureSpec int heightMeasureSpec if mContentHeight 0 First measure how high content wants to be mContent.measure.. mContent.measure widthMeasureSpec MeasureSpec.UNSPECIFIED mContentHeight mContent.getMeasuredHeight Then let the usual thing happen..

How to implement expandable panels in Android?

http://stackoverflow.com/questions/5165682/how-to-implement-expandable-panels-in-android

private View mHandle private View mContent private boolean mExpanded true private int mCollapsedHeight 0 private int mContentHeight 0 public ExpandablePanel Context context this context null public ExpandablePanel Context context AttributeSet attrs super.. new PanelToggler @Override protected void onMeasure int widthMeasureSpec int heightMeasureSpec if mContentHeight 0 First measure how high content wants to be mContent.measure widthMeasureSpec MeasureSpec.UNSPECIFIED mContentHeight mContent.getMeasuredHeight.. mContentHeight 0 First measure how high content wants to be mContent.measure widthMeasureSpec MeasureSpec.UNSPECIFIED mContentHeight mContent.getMeasuredHeight Then let the usual thing happen super.onMeasure widthMeasureSpec heightMeasureSpec private class..