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

  • SEARCH
  • Home
  • 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 4548548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:14:10+00:00 2026-05-21T16:14:10+00:00

I have a gridview with custom views in it. The custom views are view

  • 0

I have a gridview with custom views in it. The custom views are view that contain a few buttons. When I onItemClick the gridview to create the custom view, everything works fine, the GridView understands what I am trying to do; but as soon as I onItemLongClick a custom view (that has been created due to an onItemClick), it doesn’t register at all. I don’t get it, I’m always returning true at the end of the longClick. But if I fill the gridview with a simple image view, both types of click work…

As far as I’ve read from the android UI handling article all listeners will trickle top-down, so I figured that the event would fire at the gridview before hitting the custom view…

Any thoughts or Ideas?

@Override public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int pos, long arg3) {
    Log.e("Grid", "Log long click"); 
    mSelect = pos;
    mHold = Bitmap.createScaledBitmap(mGridWidgets[pos].toBitmap(), getWidth()/2, getHeight()/2, true);
    mIsHolding = true;
    setOnTouchListener(mToucher);
    Log.e("Grid", mSelect + "");
    mBoundService.vibrator.vibrate(150);
    return true;
}
  • 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-05-21T16:14:11+00:00Added an answer on May 21, 2026 at 4:14 pm

    I t’was stupid. I needed to intercept the MotionEvent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom view subclassed from GridView that I use in order to
I have a custom Grid view object that inherits from the base System.Web.UI.WebControls.GridView. The
I have a GridView in which each row has a custom view. The grid
I have a UI that consists of a Gridview loaded with a custom adapter.
I have created one gridview and use custom adapter for that. I added two
I have a list view that is displaying data using the gridview. This list
I have created one gridview and use custom adapter for that. I added two
I have a GridView with custom View in it, which is a Button and
I have a custom control that is derived from ListView . This list view
I have used this custom grid view in my code, and I want to

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.