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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:34:08+00:00 2026-05-25T10:34:08+00:00

Im trying to trace a click when my image view is clicked, but I

  • 0

Im trying to trace a click when my image view is clicked, but I cannot seem to pick up the touch, any ideas?

imgView.setOnClickListener(new View.OnClickListener(){
    public void onClick(View v) {
        Log.v(TAG, " click");
    }
});
  • 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-25T10:34:09+00:00Added an answer on May 25, 2026 at 10:34 am

    Images normally aren’t clickable, therefore I would suggest that you put the definition

    android:clickable="true"
    android:focusable="true"
    

    in your layout.xml to the imageView.

    If this is not helping, please edit+update your question and show us the part of your layout, where you define the image to have a look at it.

    EDIT:
    Tried it, and your code worked with me too – even with the upper case id name.
    Can you please have a close look at your LogCat?
    Mine sometimes doesn’t really update, as long as I don’t choose the device again.

    To do so in Eclipse, go to the View “Devices” (or show it first via “Window”) and click once on your device / virtual device.

    If you still don’t find your log entry in the LogCat-View, try to create a filter (via the green plus and giving it the String you defined with TAG as “by Log Tag”).

    Have a look at android developers > Using DDMS at the section “Using LogCat”

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

Sidebar

Related Questions

I'm trying to insert values in the table but when I click on the
I'm trying to change the background image of a div when I click on
I am trying to make a Xml Image Menu that on button click goes
I'm trying to track down a bug that occurs when I click a particular
We are trying to trace the time a windows default printer was changed and
I am trying to trace a deadlock that is occurring in our SQL 2005
I am trying to write an TUI bandwidth trace application which on query can
I'm trying to use the following code to get all trace data for the
I'm trying to better understand what the stack trace means. I have a two
I'm trying to find a simple way to call a NSLog to trace myPoint

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.