Code example for GridView

Methods: setVisibility

0
    } 
 
    private void slideToOtherSection(int name) {
        mSectionName = String.valueOf(name);
        mLoadingView.setVisibility(View.VISIBLE);
        mSubSectionList.setVisibility(View.GONE);
        new GetSubSectionTask(mContext, mSectionName, this).execute();
    } 
 
    private class SlideGesture implements OnGestureListener {
 
        @Override 
        public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
                float velocityY) {
            float deltaX = e2.getX() - e1.getX();
            float deltaY = e2.getY() - e1.getY();
            if (!mSubSectionList.isShown()) {
                return false; 
            } 
            if (Math.abs(deltaX) / 3 < Math.abs(deltaY)) {
                return false;