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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:20:17+00:00 2026-05-24T03:20:17+00:00

As far as I know, ArrayAdapter is used to handle data for ListView’s content.

  • 0

As far as I know, ArrayAdapter is used to handle data for ListView’s content. I have two ListViews (in the same activity) that contain the same data, with two different behaviors (should be handle in two different onListItemClick() ) though. Can I use the same ArrayAdapter for both of them? I can check this but I’m not sure it will create bug if I use the same Adapter.

Furthermore,if I don’t extend ListActivity as in this tutorial, how can I handle onListItemClick() events from those ListViews?

Thank in advance

  • 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-24T03:20:17+00:00Added an answer on May 24, 2026 at 3:20 am

    Yes, you can use the same Adapter. And you can handle clicks by implementing .setOnItemClickListener() for listView1 and listView2.

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

Sidebar

Related Questions

As far I know, the two most common methods of reading character-based data from
I'm trying to understand MVC thing and so far I know that it's used
I have encountered the following problem which proved to me that I know far
As far as I know, foreign keys (FK) are used to aid the programmer
I am developing custom iPad applications for clients. So far I know that you
So far I know two ways to pass php variables to javascript. One is
Python, as far as know, does not allow modification of an archived file. That
I know so far that a local variable or a local property can be
So far I know that these keywords are valid for beginning a java source
As far I know, the my operator is to declare variables that are truly

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.