Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7798291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:57:49+00:00 2026-06-01T23:57:49+00:00

I m using a full screen gallery in my project and with gallery i

  • 0

I m using a full screen gallery in my project and with gallery i am using supporting base adapter of gallery
now i have to make gallery disable/stop scrolling of gallery until popup is displayed in on button click
can any one help me out in this matter ?

–> below is the snippet i m using base adapter for gallery and not extending gallery.

public class SubItemSelectedImageAdapter extends BaseAdapter {

    int mGalleryItemBackground;
    private Context mContext;
    private String[] mImageIds;
    ImageView[] mImages;

    public SubItemSelectedImageAdapter(Context c, String[] mImageIds2) {

        mImageIds = mImageIds2;
        mImages = new ImageView[mImageIds.length];
        mContext = c;
        TypedArray attr = mContext
                .obtainStyledAttributes(R.styleable.HelloGallery);
        attr.recycle();
    }

    public int getCount() {
        return mImageIds.length;
    }

    public Object getItem(int position) {
        return position;
    }

    public long getItemId(int position) {


        return position;
    }


    public View getView(int position, View convertView, ViewGroup parent) {
        // TODO Auto-generated method stub

        ImageView imageView = new ImageView(mContext);

        imageView.setImageURI(Uri.fromFile(new File(mImageIds[position])));
        imageView.setLayoutParams(new Gallery.LayoutParams(
                LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
        imageView.setScaleType(ImageView.ScaleType.FIT_XY);

        return imageView;
    }
}

public void afterTextChanged(Editable s) {
    // TODO Auto-generated method stub

}

public void beforeTextChanged(CharSequence s, int start, int count,
        int after) {
    // TODO Auto-generated method stub

}

public void onTextChanged(CharSequence s, int start, int before, int count) {
    // TODO Auto-generated method stub

}

}

and delaring Gallery object and refrence it from xml …

    // full screen gallery implementation.
    ImageAdapter = new SubItemSelectedImageAdapter(this, data);
    Gallery gallery = (Gallery) findViewById(R.id.gallery);

    gallery.setAdapter(ImageAdapter);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:57:52+00:00Added an answer on June 1, 2026 at 11:57 pm
    use setOnTouchListener() of gallery as below and use flag for the enable disable process 
    - on popup being display make flag false and when there is no popup being displayed make flag false. 
    - code is as below: 
    gallery.setOnTouchListener(new OnTouchListener() 
    { public boolean onTouch(View v, MotionEvent event)
     { // TODO Auto-generated method stub
     if(flag==true){ return false;
     }else{
     return true; 
    }
     }
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're used to using websites like youtube in full screen, but now Facebook offers
I'm using timthumb to display a full screen gallery slider in a wordpress site.
I am using the Gallery UI controller to provide a full-screen slideshow. It is
Ill keep this simple, I have a mediaelementcontrol playing full screen using the following
I'm using a CardLayout to switch between full-screen panels that have several nodes. To
I'm using Supersized jQuery plugin . This plugin is used to make full screen
I'm using Backstretch jQuery plugin to create full screen background images, but have a
So I got the webpage to go full screen now but I am using
I am using jQuery-Image-Gallery jQuery plugin. It is a full-screen jQuery photo gallery. I
I start a iPad game using cocos2d.. When I add a full screen image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.