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

  • Home
  • SEARCH
  • 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 6592795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:36:02+00:00 2026-05-25T17:36:02+00:00

My app i’m currently developing needs to refresh a Linear Layout that i’m dynamically

  • 0

My app i’m currently developing needs to refresh a Linear Layout that i’m dynamically adding Views too. I currently am adding all of the Views within the UI thread but have a separate Dialog class which upon a button click within the Dialog will need to refresh/Re draw the Linear Layout. Is there a way I can refresh the Linear Layout within a different class (trying to stay very object oriented in my program design) or a way to use a game loop for a Linear Layout to refresh the View every 3 seconds? Thanks!

  • 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-05-25T17:36:03+00:00Added an answer on May 25, 2026 at 5:36 pm

    I’m pretty sure you don’t need to manually “redraw” anything. As soon as you change the contents of your layout (and as soon as android can get around to it (which will be a LOT faster than 3 seconds)) you’ll see the updated screen. As to what thread you do this from, you can only change your layouts from the main thread, as far as I know, but you can call Runnable methods in that thread via a handler from anywhere.

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

Sidebar

Related Questions

My app needs to build a buffer from all the selected cells on a
The app I'm developing needs to be able to pull from several different data
My app has many controls on its surface, and more are added dynamically at
App A has this BroadcastReceiver in its manifest (within <application>): And this receiver: public
My app needs to show Google Maps directions from A to B, but I
My app needs to process text files during a batch process. Occassionally I receive
My app needs to use a library which is only available for Python and
My app has three tabs, A, B, C that have three distinct activities. Tab
App Store We have been developing an app for quite some time now for
My app makes several calls to getFromLocationName from the android.location.Geocoder; class, this is currently

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.