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 8296875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:11:36+00:00 2026-06-08T15:11:36+00:00

I have six imageViews in my gridview. I am trying to get the focus

  • 0

I have six imageViews in my gridview. I am trying to get the focus changed events for thes imageviews using the following code; but this does not work when I change the focus. Can someone please let me know why and the solution for the same. Any help is much appreciated

gridView.setOnFocusChangeListener(new AdapterView.OnFocusChangeListener() {
        //@Override
        public void onFocusChange(View arg0, boolean arg1) {
            Log.d("MyTestActivity", "View:" + arg0.getId() + " boolean = " + arg1);
        }
    });
  • 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-08T15:11:37+00:00Added an answer on June 8, 2026 at 3:11 pm

    Following code only works when focus cnahge on the whole gridview – if you want to listen for the focus on each imageView – you have to set listeners on each of it.
    But i think you maybe want something like onItem…Listener ? What goals are you want to achieve ?

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

Sidebar

Related Questions

I am trying to plot a graph using gnuplot. I have six text files.
My code follows. I have six items (indices 0-6) and I'm trying to check
I have the following code which displays only 1 result. However, I have six
I have six checkboxes. Shown as like this Checkbox1 <input type=checkbox id=check1> Checkbox2 <input
i have this code, that works without any problem: <script> $(document).ready(function () { $(.block1).click(function
I have six folders like this >> Images and each folder contains some images.
I have this code: var newProduct = new Product(); newProduct.Name = product name; newProduct.Description
I have six arrays. with names arr1,arr2,arr3,arr4,arr5,arr6. I want to get the the array
I'm using MS SQL Server but welcome comparitive solutions from other databases. This is
I have six source files and I would like to link them using the

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.