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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:32:27+00:00 2026-06-12T20:32:27+00:00

I am working with the awesome endlessAdapter provided here: https://github.com/commonsguy/cwac-endless Everything seems to work

  • 0

I am working with the awesome endlessAdapter provided here: https://github.com/commonsguy/cwac-endless

Everything seems to work fine with the examples and I would like to work with my own layout, so as usual, I override the getview of my adapter:

public class EventAdapter extends EndlessAdapter {
@Override
    public View getView(int position, View convertView, ViewGroup parent) {

        EventHolder holder = null;
        if (convertView == null) {
            LayoutInflater layoutInflater = (LayoutInflater) ctxt
                    .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            convertView = layoutInflater.inflate(R.layout.row_activite_light,
                    parent, false);

            holder = new EventHolder();
            holder.txtTitle = (TextView) convertView
                    .findViewById(R.id.txttitle);

            convertView.setTag(holder);

        } else {
            holder = (EventHolder) convertView.getTag();
        }

        holder.txtTitle.setText(mListItems.get(position).getTitle());


        return convertView;
    }
}

This is fine, but I have lost the ability to load the next batch of data.

Can someone explain how I should work with the getView of the adapter?

  • 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-12T20:32:28+00:00Added an answer on June 12, 2026 at 8:32 pm

    Everything seems to work fine with the examples and I would like to work with my own layout, so as usual, I override the getview of my adapter

    Override getView() of the adapter you are wrapping in EndlessAdapter (i.e., the one you supplied to the EndlessAdapter constructor).

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

Sidebar

Related Questions

I have implemented ray's awesome tutorials on apns, every thing is working fine, now
My friend gave the following code which is working awesome here http://jsfiddle.net/WVLE2/ I tried
I am trying to get this awesome JQuery plugin working with SQL Server. I
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
The Ruby LESS gem looks awesome - and I am working on a Python/Pylons
I am working with PowerShell 2.0 with Psake 1.4 Here is the dos command
Here's a tough one: I'm working on a website where most of the content
I am working on a site in Python built on the back of Django(awesome
I'm working on a big project, some might say awesome. The project is being
PHP developer here working with c#. I'm using a technique to remove a block

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.