Code example for Gallery

Methods: setVisibility

0
            collapsRecommended(); 
        } 
    } 
 
    private void expandRecommended() { 
        mRecommendedList.setVisibility(View.VISIBLE);
        mIsRecommendedExpended = true;
    } 
 
    private void collapsRecommended() { 
        mRecommendedList.setVisibility(View.GONE);
        mIsRecommendedExpended = false;
    } 
 
    public void setOnExtraControllListener(OnExtraControllListener l) {
        mOnExtraControllListener = l;
    } 
 
    public interface MediaPlayerControl { 
        void    start(); 
        void    pause();