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

The Archive Base Latest Questions

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

I have a doubt in listview android. I am getting 3 dynamic values from

  • 0

I have a doubt in listview android. I am getting 3 dynamic values from service. I am using my own Arraylist Adpater. I have 3 textviews. I am able to get the data from service. I need to know how can i place the 3 values in individual textview of the listview.

sample code:

buddyNameList[i] = r.getName() + status; 
            //buddyNameLists[i] = status;
                //RowData rd;
                for(i=0;i<buddyNameList[i].length();i++){



                //buddyJidList[i] = r.getUser();
                // Intent myIntent = new Intent(this,DataHelper.class);
                // myIntent.putExtra("UJID", mydata);
                // startActivity(myIntent);
                // dh.insertBuddy(r.getUser(),r.getName());
                i++;
                ListAdapter adapter = new ArrayAdapter<String>(this,
                        R.layout.custom_row_view,R.id.name     ,buddyNameList); // here i can append one value in 1 textview. i need to display all 3            //values from service in 3 individual textview in listview

                lv.setAdapter(adapter);

I need to know how to place values of all 3 data in corresponding cell in listview
Kindly guide me how can i achive the result.

Thanks 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-31T22:23:52+00:00Added an answer on May 31, 2026 at 10:23 pm

    Use a custom BaseAdapter. In the getView of the adapter, inflate your layout and give values for the textViews. Refer http://developer.android.com/reference/android/widget/BaseAdapter.html

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

Sidebar

Related Questions

I have a doubt in layouts.I have designed one layout using group layout using
I have a doubt regarding the backlog value in listen system call. From man
I have a doubt with enums if I defined a enums that inherited from
I have to implement a ListView with elements from a Person object. This object
I am going to have a listview with links that get binded from the
I have a doubt to be clarified. I am able to fetch the buddylist
I have doubt whether it is possible to stop service , when USB is
I am using htmlspecialchars() function to prevent XSS attacks. I have doubt regarding what
I have a doubt in licensing. I am using C# application. Scenario: User gets
I have doubt whether we can achieve multiple inheritence using 'module' concept or Is

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.