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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:32:15+00:00 2026-06-02T02:32:15+00:00

I need to implement a UI which displays many images(more than 1000). The layout

  • 0

I need to implement a UI which displays many images(more than 1000). The layout of the images like this:

(image1)  (image2)  (image3)
  ( image4 )    ( image5 )
  ( image6 )    ( image7 )
     ...
  ( imageN )    ( imageN+1)

I want to show these images in a ListView and I know how to do that. But, I don’t know how to identify which image is clicked after showing them. I need to display a big image after clicking the little image in the ListView. Any answer will be appreciated.

Edit 1: if it is hard for a ListView to do this, is it possible to use a GridView to implement this kind of layout?

  • 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-02T02:32:17+00:00Added an answer on June 2, 2026 at 2:32 am

    You can create an ArrayList of ImageView, and add all imageView objects in it. Then just call setOnTouchListener to all elements of the arraylist using loop. In the OnTouch(View v, MotioNEvent event) method, the View v is your imageView.

    for example:

    for(int i=0;i<imageArray.size();i++){
        imageArray.get(i).setOnTouchListener(new OnTouchListener(){
            protected boolean onTouch(View v, MotionEvent event){
                //v is your image on which the touch event happened.
            }
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a simple application in Python which displays images.I need to implement Zoom
How do I implement a listview which displays images an text dynamically from the
I need to implement an Autocomplete functionality which display names and faces like in
I need to implement Android application which will be expired after few days or
class Foo(){ public List<string> SomeCollection; } I need to implement an event which can
I need to implement a simp^le find function which will retrieve the 1st occurence
I need to implement a configuration file, which should be rescanned periodically or after
I have a website for which I need to implement the admin interface. The
I am making an app in which i need to implement calling emergency medical
I have a control which is mounted within a form. I need to implement

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.