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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:02:17+00:00 2026-06-07T05:02:17+00:00

For a List view you must have an adapter. To fill the list items

  • 0

For a List view you must have an adapter. To fill the list items you need data. Now here is the question:

  1. is this a good idea to download the data in custom adapter ?
  2. or better is download data in activity & pass it to adapter ?
  3. or their is any better way to achieve that ?
  • 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-07T05:02:18+00:00Added an answer on June 7, 2026 at 5:02 am

    I got a better answer for this question:

    • prepare your data in Activity, then send it in your Adapter. It may be downloading the data via AsyncTask or from SQLite or something else.
    • In your Adapter load the data via AsyncTask or from SQLite or something else.

    But the better option is loading the data in Activity & use it in Adapter. It will help you to make your codes cleaner & it will give you more flexibility, to manage your data. But in some situations, you may consider to prepare the data in Adapter; if you have difficulties to load it in Activity.

    Both works fine, Its up to you which will you consider.

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

Sidebar

Related Questions

In my viewmodel, I have a list (ObservableCollection) containing items. In the view, this
I have a list view binded to a data source. How can I enable
It seems that android has enforced that a listview must have the name android:id=@android:id/list,
I have a list view with 10 columns and I want each row to
I have a list view which is bound to a DataTable source. The sorting
I have a list view comprised of the following: // Add column headers for
I have a list view with many rows and have it set so that
I have a list view item which has a button and displays properties on
I have a standard list view setup with backbone that looks something like below.
I have some view (Views 2 - list of invitations, table style) which uses

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.