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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:33:32+00:00 2026-05-26T03:33:32+00:00

I have listed a list with custom adapter to display different images in each

  • 0

I have listed a list with custom adapter to display different images in each list item and succeeded.
Now i need to add a onitemclick listener for that list.
Unable to access the id because the list id is – “@+id/android:list”.
Unable to identify this id.

Any ideas please share.
You will get some more idea when you see this below link

Click here for the example i tried.

  • 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-26T03:33:32+00:00Added an answer on May 26, 2026 at 3:33 am

    In the given example, the ListActivity is extended in CustomAdapterActivity.java

    so its simple to get Click events of the list items by writing list item click listener

    and to write onClickListener you need to do

    like this in that class.

    **

    public class Test extends ListActivity {
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            // TODO Auto-generated method stub
            super.onCreate(savedInstanceState);
    
            ListView lv = getListView();
            lv.setOnClickListener(new OnClickListener() {
    
                public void onClick(View v) {
                    // TODO Auto-generated method stub
    
                }
            });
        }
        @Override
        protected void onListItemClick(ListView l, View v, int position, long id) {
            // TODO Auto-generated method stub
            super.onListItemClick(l, v, position, id);
        }
    
        }
    

    **

    And To Know More and Learn About LIST VIEW in Android you can view this : http://www.vogella.de/articles/AndroidListView/article.html#overview_listview

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

Sidebar

Related Questions

i have a custom list view. in that i am listing out images of
I have a list of items like how its listed below, and I'm trying
I have a missing reference listed in my References list (in the VBA Code
I have 4 Tables (listed bellow) and need: get last 10 Chats from Room
I have a CListBox with custom drawing being used, and need to detect mouse-clicks
I am trying to list images on my webpage with text underneath each image.
I have created a custom list here is the List Template: <ListTemplate Name=CustomDocumentLibrary DisplayName=Document
I have a List with a custom ItemRenderer. The ItemRenderer contains a Checkbox and
I have a Generic List of objects that I've bound to a custom control.
I have a custom Qt widget which I used to display disassembly and I

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.