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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:00:34+00:00 2026-06-09T06:00:34+00:00

I have a programmatically generated ScrollView with a TextView inside of it. I wish

  • 0

I have a programmatically generated ScrollView with a TextView inside of it. I wish to update the text in the TextView from time to time and some have implemented a handler function to update the TextView GUI element. This seems to call/work correctly.

However, currently the only way I have found to actually get the TextView to show the appended information is to call:

consoleText.append("New text to add to TextView");
// then:
myScrollView.removeView(myTextView);
myScrollView.addView(myTextView);

This is not particularity optimal and was wondering how else I can refresh the contents of the ScrollView to show my newly added information…

Also:

invalidate();
postvalidate();

Do not seem to do anything – the TextView object has the new text in it (looking in debug) it’s just not drawing it to the screen unless I call the add/remove function.

Thanks for any information/help you can give

FR

  • 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-09T06:00:36+00:00Added an answer on June 9, 2026 at 6:00 am

    You should call invalidate() and requestLayout() on the TextView, and perhaps the ScrollView.

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

Sidebar

Related Questions

I have a ComboBox and its ComboBoxItem are all generated in run time (programmatically).
I have a radiogroup in xml, and the buttons are generated programmatically. How do
I have some Javascript code that will programmatically register an COM interop assembly by
I have some code that generates a PDF file programmatically and I need to
I have id_rsa.pub key generated by ssh-keygen. How can I programmatically convert id_rsa.pub files
I have a programmatically generated dijit.form.Select. Unlike most other widgets, the Selects do not
I have a system that emails programmatically generated emails hundreds of times daily. They
I'm parsing RTF 1.5+ files generated by Word 2003+ that may have content from
I have a DataTable where the columns are generated programmatically at runtime. I then
I have 9 (programmatically generated) buttons. I do this for all of them: Button

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.