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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:17:41+00:00 2026-06-08T18:17:41+00:00

I am developing an android rss reader but the problem i am facing is

  • 0

I am developing an android rss reader but the problem i am facing is when trying to fetch data from rss feeds where description contain html content like the following:

<item>
    <title>Katima&#45;Comic</title>
    <link>http://thelinknewspaper.ca/article/3063</link>

    <guid isPermaLink="false">thelink_entry_3063</guid>
    <description><![CDATA[


        <img alt=""  width="690" height="407" src="http://thelinknewspaper.ca/images/cache/c11f5084728aa602d09cd15bb20ae7a86b06be79.jpg" />
    </p>


    <p>This is the story of Andrew Murchison, a Katimavik volunteer whose life was changed by the federal youth program.</p>        
    <p><iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/101595075/content?start_page=1&view_mode=list&access_key=key-1ss1qrvm5hi9h7othhkq" data-auto-height="true" data-aspect-ratio="0.777636594663278" scrolling="no" id="doc_79691" width="100%" height="600" frameborder="0"></iframe></p>




            ]]></description>
            <dc:creator>Paku Daoust&#45;Cloutier</dc:creator>
    <dc:date>2012-07-31T00:20:54+00:00</dc:date>
</item>

I am displaying the content in a textview which displays the content as is with the html tags!

How can i display it in a good readable way with a scroll bar inside a specific area

thanks

here’s a portion of the code i am using:

@Override
    public View getView(final int position, View convertView, ViewGroup parent) {
        View view = convertView;
        ViewHolder holder;
        if (view == null) {
            LayoutInflater inflater = (LayoutInflater) activity
                    .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            view = inflater.inflate(R.layout.row, null);

            holder = new ViewHolder();
            view.setTag(holder);
        } else {
            holder = (ViewHolder) view.getTag();
        }

        if ((items == null) || ((position + 1) > items.size()))
            return view;

        objBean = items.get(position);


        holder.title = (TextView) view.findViewById(R.id.txttitle);
        holder.description = (TextView) view.findViewById(R.id.txtdesc);



        if (holder.title != null && null != objBean.getTitle()
                && objBean.getTitle().trim().length() > 0) {
            holder.title.setText(Html.fromHtml(objBean.getTitle()));
        }
        if (holder.description != null && null != objBean.getDescription()
                && objBean.getDescription().trim().length() > 0) {
            holder.description.setText(Html.fromHtml(objBean.getDescription()));
        }


        // Even and odd Row...
        if ((position % 2) == 0) {
            view.setBackgroundResource(R.drawable.bg_list_even);
        } else {
            view.setBackgroundResource(R.drawable.bg_list_odd);
        }

        return view;
    }

and

public class NewsDetail extends Activity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.detail);

        Bundle b = this.getIntent().getExtras();

        String title = b.getString("title");
        String desc = b.getString("description");

        final String link = b.getString("link");


        TextView tvtitle = (TextView) findViewById(R.id.tvtitle);
        TextView tvdesc = (TextView) findViewById(R.id.tvdesc);


        Button btnWeb = (Button) findViewById(R.id.btngotolink);
        btnWeb.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(link)));
            }
        });

        tvtitle.setText(title);
        tvdesc.setText(desc);


        setTitle(title);
    }

}

Thank again any help would be really appreciated!!

  • 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-08T18:17:42+00:00Added an answer on June 8, 2026 at 6:17 pm

    When you set the text, set it as text from html:

    tvdesc.setText(Html.fromHtml(desc));
    

    If you want to show images from the html you’ll need to use a WebView with something along these lines:

    myWebview.loadData(myHtmlString, "text/html; charset=UTF-8", null);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have been developing an Android RSS reader.I want to fetch the images from
I am developing an Android RSS reader. My work almost done, but I have
I have been developing an Android RSS news reader.I want to add two buttons
I'm developing android application with phonegap . Currently I'm facing one problem with inputbox
I'm developing a RSS reader android app. I have a ListView that shows my
Im developing an android App I want to read the data in from Excel
I am developing RSS Feeds application from the basic google resource folder. Right now
I am developing android application in which i have to open option menu from
i am developing an android app that fetches an RSS feed, now i want
I'm developing a foreign exchange rate app that downloads data from a specific url

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.