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

  • Home
  • SEARCH
  • 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 7954409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:25:16+00:00 2026-06-04T03:25:16+00:00

I have a ListView where I have some elements. Every item has one ListView

  • 0

I have a ListView where I have some elements. Every item has one ListViewand two TextBoxes. Here is my question: When I clock on element from the list a new activity starts, where I have one ListView and two TextBoxes. How I can do this if I click first element in the new activity in ListView will be ListViewfrom this item and in TextBoxeswill be data from TextBoxes from the list.

  • 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-04T03:25:18+00:00Added an answer on June 4, 2026 at 3:25 am

    You can pass extras to the Intent you use when starting the new Activity.

    Let’s say your current activity is MyActivity, and the one you want to start by clicking on a list item is MyNewActivity; Then in your MyActivity class, inside the list item click listener should be modified as:

    Intent intent = new Intent(MyActivity.this, MyNewActivity.class);
    intent.putExtra("my.picture.id", images[itemPosition]);
    intent.putExtra("my.header.id", headers[itemPosition]);
    intent.putExtra("my.text.id", texts[itemPosition]);
    startActivity(intent);
    

    and in your MyNewActivity class’ onCreate method you are able to retrieve the passed extras, and fill the proper fields with the correct values:

    final Intent intent = getIntent();
    final int pictureId = intent.getIntExtra("my.picture.id", 0);
    final int headerId = intent.getIntExtra("my.header.id", 0);
    final int textId = intent.getIntExtra("my.text.id", 0);
    
    ((ImageView)findViewById(R.id.my_image)).setImageResource(pictureId);
    ((TextView)findViewById(R.id.my_header)).setText(headerId);
    ((TextView)findViewById(R.id.my_text)).setImageResource(textId);
    

    the images, headers and texts arrays -I suppose- contain the resource ids for the images and strings you want to display. They are probably accessible via the data of your current item’s renderer.

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

Sidebar

Related Questions

I have a listview and each item has a title, some info, and a
I have a ListView with few elements, each item contains two buttons with a
I have a ListView with some elements on it. Each row has a TextView
I have a ListView with some elements and I want to change the background
I want to have a list of elements (using a ListView) and each element
I have a ListView with some custom sections in it. Each section has it's
I have one ListView which is showing me some data through an array (which
I have a ListView with some items. I have toggleButton in each row of
I have a ListView with multiple choice entries where some are checked from the
Background: I have a ListView / GridView with several columns. In some situations, only

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.