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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:09:28+00:00 2026-06-16T18:09:28+00:00

I am Currently working on Android, and I created listview that loads Images from

  • 0

I am Currently working on Android, and I created listview that loads Images from URL. I have achieved this by following code

InputStream is = (InputStream) new URL("http://ka.35pk.com/uploadfiles/gamepic/090830121252.jpg").getContent();

Drawable d = Drawable.createFromStream(is, "pic name");
imageview.setImageDrawable(d); 

In the listview the image is not loading till I scroll down the listview once. But it can loaded correctly on invisible part of listview. ie , if I have 100 images on listview means, only 10 images have visible on the screen at a time, these 10 images coudn’t load at begging, when I scroll down, another 10 invisible images now come to the visible part, and those images are loaded successfully now, again when I scroll up , now those unloaded images also loaded now, which means that, it coudn’t be loaded when it was visible on the screen. Sorry for my English.Hope, I have explained in details. How can I load all the listview images from URL without using scroll down/up. kindly help me. thanks.

  • 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-16T18:09:30+00:00Added an answer on June 16, 2026 at 6:09 pm

    Check this answer it is help you:

    • (1) https://stackoverflow.com/a/3068012/1168654

    and

    • (2) https://stackoverflow.com/a/8562313/1168654

    If your app have many image & also there is memory issue then you have to handle you owen way.

    Like download image in listview using lazy loading. and for other images use another way like link 2.

    for your scrolling problem check your getView() code in adapter add like below:

    public class ListViewAdapter extends BaseAdapter {
    
            private LayoutInflater mInflater;
    
            public ListViewAdapter(Context con) {
                // TODO Auto-generated constructor stub
                mInflater = LayoutInflater.from(con);
            }
    
            public int getCount() {
                // TODO Auto-generated method stub
                return SoapParser.title_date.size();
            }
    
            public Object getItem(int position) {
                // TODO Auto-generated method stub
                // return product_id1.size();
                return position;
            }
    
            public long getItemId(int position) {
                // TODO Auto-generated method stub
                // return product_id1.get(position).hashCode();
                return position;
            }
    
            public View getView(final int position, View convertView,
                    ViewGroup parent) {
                // TODO Auto-generated method stub
                final ListContent holder;
                View v = convertView;
                if (v == null) {
                    v = mInflater.inflate(R.layout.row_tb, null);
                    holder = new ListContent();
    
                    holder.date = (TextView) v.findViewById(R.id.textView1);
                    holder.actual = (TextView) v.findViewById(R.id.textView2);
                    holder.targate = (TextView) v.findViewById(R.id.textView3);
    
                    v.setTag(holder);
                } else {
    
                    holder = (ListContent) v.getTag();
                }
    
    
    
                holder.date.setId(position);
                holder.actual.setId(position);
                holder.targate.setId(position);
    
                holder.date.setText(" " + SoapParser.title_date.get(position));
                holder.actual.setText(" " + SoapParser.title_actual.get(position));
                holder.targate
                        .setText(" " + SoapParser.title_targate.get(position));
    
                return v;
            }
        } 
    

    if you are use any other view in layout then make it android:focusable='false'

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

Sidebar

Related Questions

I am currently working on an android project and I have an activity that
I am currently working on android project where I want to have a text
I am currently working on an Android project. I am using a ListView and
I am currently working on an android project and I have an activity, lets
I am currently working on an android application which requires reading data from bluetooth
I am currently working on an android project. I am trying to have an
I have a android project, I am working on and it, currently does not
Hey guys i am currently working on an android app that will allow me
Currently I am working on an Android application that is dynamically creating controls. Everytime
I am currently working on a C-based, NDK-based, Android application. This application needs to

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.