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

The Archive Base Latest Questions

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

I’ve downloaded pull to refresh widget for android and now I’m trying to make

  • 0

I’ve downloaded pull to refresh widget for android and now I’m trying to make it work.
I copied everything from the plugin and plugin example folder into my project, changed the import reference to R in com.markupartist.android.widget.PullToRefreshListView
to my project’s R file. Worked fine at this point.

Then I have added another layout into res/layout and started to get weird error messages.
This layout is not anyhow used in my project, I just put the file in place.
Current exception message is:
your content must have a listview whose id attribute is ‘android.r.id.list’
(there is still the listview in pull_to_refresh.xml from the example project with this id, not anyhow changed).
Content of my added xml file (named crasher.xml) is:

<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"

    android:orientation="horizontal"
    android:padding="5dip" >

    <!-- Article title -->
    <TextView
        android:id="@+id/alr_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:text="Article title"
        android:textColor="#040404"
        android:typeface="sans"
        android:textSize="15dip"
        android:textStyle="bold"/>

</RelativeLayout>

As I change this newly added layout, the exception sometimes varies and is thrown from line 93 of PullToRefreshListView.java, where the inflater is called to inflate the pull_to_refresh_header file. I am almost sure there is a problem with the inflater and somehow conflicting layouts.
For a moment I was getting an error on this line saying that I cannot cast RelativeLayout to LinearLayout (I am not aware of doing it anywhere) – now I don`t remember what exactly I did and cannot reproduce it, but it was only in changing views in the added and unused layout crasher.xml.

I do not perfectly understand the inflating process and cannot determine where is the problem, can anyone help me?

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-06-11T09:01:11+00:00Added an answer on June 11, 2026 at 9:01 am

    I have finally found solution to this kind of problem:

    Clean build seems to be the solution. In NetBeans, Run->Clean and Build,
    in Eclipse there is a similar option I think. It solves various weird problems with generated layout resources, which are obviously not-very-well cached and re-built during development.

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.