¡@

Home 

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

android Programming Glossary: mcontentid

How to implement expandable panels in Android?

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

public class ExpandablePanel extends LinearLayout private final int mHandleId private final int mContentId private View mHandle private View mContent private boolean mExpanded true private int mCollapsedHeight 0 private int mContentHeight.. new IllegalArgumentException The content attribute is required and must refer to a valid child. mHandleId handleId mContentId contentId a.recycle @Override protected void onFinishInflate super.onFinishInflate mHandle findViewById mHandleId if mHandle.. throw new IllegalArgumentException The handle attribute is must refer to an existing child. mContent findViewById mContentId if mContent null throw new IllegalArgumentException The content attribute is must refer to an existing child. mHandle.setOnClickListener..