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

The Archive Base Latest Questions

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

I have created one list view.. it is having 5 items… Now I want

  • 0

I have created one list view.. it is having 5 items…

Now I want split the list items…

when user clickon the first listitem or focus on first item then immediately it has to show followed some text views or other things..but it has to show same list..

and agian same when he clickon or focus on the second item that first item has to be close and second item has to act some thing….

  • 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-17T22:31:21+00:00Added an answer on May 17, 2026 at 10:31 pm

    The problem is that you cannot use the standard ListView in your case, because in the standard ListView, the View of each row has to be one TextView.
    In your case, you need it to be at least two TextViews (The standard Text, and the one that’s gonna show up onClick/onFocus).

    You have to create your custom ListAdapter, and override the getView() function.
    Here is a code snippet that shows how to do it properly:
    Custom Adapter

    In the getView(), you have to inflate the XML file that describes your List Row, and return it.
    In your case, I believe your XML file should contain 2 TextViews, one visible and one invisible.

    Then, to handle the clicks, you can set a onItemClickListener on your ListView in your Activity class.
    The best way may be to have your Activity class implementing onItemClickListener, and to use this onItemClickListener to handle those.
    In the onClick() function, you just have to set the Visibility of your hidden TextView to VISIBLE.

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

Sidebar

Related Questions

i have created one login and register view in that view after login user
i have one problem with handling list,i have three class named as UserInf,userData,userProcess,i created
I have created one jTable. I want to display the data into table from
I am trying to take an expandable list view that I have already created
Hi I have created one fully xml based project. my doubts now I store
I have created a listview that sits inside a larger activity (the list view
I am trying to display ListView . I have created one activity , in
I have created one service in my grails application. in that service 25 methods
I have created one UIImageView Here's code capView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:kARROW_CAP_NAME]]; capView.frame
I have created one library project in iphone and my images folder is present

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.