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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:48:33+00:00 2026-06-11T09:48:33+00:00

i have listview , and in each row needs to be an hoeizontal scrollview

  • 0

i have listview , and in each row needs to be an hoeizontal scrollview witch N number of images , and its just keeps crashing my app as soon as i start that activity

here is the code

public View getView(int position, View convertView, ViewGroup parent) {

    View vi=convertView;
    if(convertView==null){
        vi = inflater.inflate(R.layout.foto_list_row, null);
    }


    TextView title = (TextView)vi.findViewById(R.id.foto_title); // title


    HashMap<String, String> n = new HashMap<String, String>();
    n = data.get(position);
    LinearLayout ll = (LinearLayout) vi.findViewById(R.id.fotoh);
    String var[] = (n.get(FotoView.TAG_ALBUM)).split(",");
    ImageView iv = new ImageView(activity.getApplicationContext());
    for(int a=0;a<var.length;a++){
        String t = var[a];
        if(t == "null"){
            t.replace("null", "");
        }else{
            //tv.setText(t);
            imageLoader.DisplayImage(t,iv);
            ll.addView(iv);
        }
    }


    // Setting all values in listview
    title.setText(n.get(FotoView.TAG_TITLE));
    return vi;
}
  • 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-11T09:48:35+00:00Added an answer on June 11, 2026 at 9:48 am

    I think what you probably want is to have a Gallery in a xml layout file, and that file wil serve as the ListView row and you need to create another Adapter for the Gallery in your current in getView() you need to do this.

    public View getView(int position, View convertView, ViewGroup parent)
    {
        Gallery gallery;
        if (convertView == null)
            gallery == inflater.inflate(R.layout.gallery_row, parent, false);
        else 
            gallery == (Gallery) convertView;
    
        String[] images = data.get(position).split(",");
        GalleryAdapter gAdapter = new GalleryAdapter(images);
        gallery.setAdapter(gAdapter);
    
        return gallery;
    
    }
    

    I think with this you can have a basic idea what you should do.

    • 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 row has an ImageView. These Images are downloaded
I have an app using a ListView as a main screen. Each row displays
I have a ListView where each row represents content that needs to be upload
I have a ListView with an EditText on each row working. I need to
I have a ListView, each row have an ImageView to load a small icon.
I have a listView, where each row has a button in the row layout.
I have a ListView in my activity. Each row includes three TextViews in this
I have a ListView with some items. I have toggleButton in each row of
I have an xml layout which I use for each row in my listview:
I need to create a very small ListView. Each row could have a different

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.