¡@

Home 

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

android Programming Glossary: mhandleid

How to implement expandable panels in Android?

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

import com.example.androidapp.R 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.. contentId 0 throw 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.. mContentId contentId a.recycle @Override protected void onFinishInflate super.onFinishInflate mHandle findViewById mHandleId if mHandle null throw new IllegalArgumentException The handle attribute is must refer to an existing child. mContent..