Code example for MediaController

Methods: show

0
            mViewPort.setOrientation(LinearLayout.VERTICAL); 
            mViewPort.setGravity(Gravity.CENTER); 
            mViewPort.setOnClickListener(new OnClickListener() { 
                public void onClick(View v) { 
                    if (mMediaController != null) { 
                        mMediaController.show(); 
                    } 
                } 
            }); 
            mScrollViewPort.addView(mViewPort, new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, 
                    LayoutParams.WRAP_CONTENT)); 
            addView(mScrollViewPort); 
        } 
        // Layout views to fit the LinearLayout from left to right, then top to 
        // bottom. 
        TreeMap<Position, View> viewsByPosition = new TreeMap<Position, View>(new Comparator<Position>() { 
            public int compare(Position p1, Position p2) {
                int l1 = p1.mLeft;
                int t1 = p1.mTop;
                int l2 = p2.mLeft;
                int t2 = p2.mTop;