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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:30:36+00:00 2026-05-23T05:30:36+00:00

i am creating one layout in code retrieve all message string and image using

  • 0

i am creating one layout in code retrieve all message string and image using webservices all retrieve data in background process display the data total all views display one time ,

my intension is i am getting one message string and one image getting after display custom layout next getting another(second) message string and image then display add the layout this functionality running one by one show the messages and images

xmlfile:

    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/frameLayout1"     
 android:layout_width="fill_parent"     
 android:background="@android:color/white"   
   android:layout_height="fill_parent">   
  <ScrollView android:id="@+id/scrollView1"   
       android:layout_height="wrap_content"  
        android:layout_width="fill_parent">  
    </ScrollView>
 </FrameLayout> 

code file :

public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.main); 

    ScrollView scrollView = (ScrollView) findViewById(R.id.scrollView1); 

    LinearLayout topLinearLayout = new LinearLayout(this); 
    topLinearLayout.setOrientation(LinearLayout.VERTICAL);  

    for (int i = 0; i < 15; i++){ 

        LinearLayout linearLayout = new LinearLayout(this); 
        linearLayout.setOrientation(LinearLayout.HORIZONTAL);  

        ImageView imageView = new ImageView (this); 
        TextView textView = new TextView (this); 

        imageView.setImageResource(R.drawable.image); 
        textView.setText("Text View #" + i); 

        linearLayout.addView(imageView); 
        linearLayout.addView(textView); 

        topLinearLayout.addView(linearLayout);           

    } 

    scrollView.addView(topLinearLayout); 

} 

how can display image and message in custom layout one after one in dynamically
please forward some solution thank 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-05-23T05:30:36+00:00Added an answer on May 23, 2026 at 5:30 am
    using asynronous task in u r application update to ui
    
    http://developer.android.com/reference/android/os/AsyncTask.html
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When creating a subscription on reporting services 2008 one is unable to select all
What does one loose by creating POCO using T4 templates in entity framework 4.0?
I'm creating a html-layout based on an existing layout. I want to extract all
I have seen several methods for creating simple fixed width single column layout using
I'm creating a custom dialog with a background image which has rounded corners. I
I am creating the applet using the BoxLayout. In this layout i have 3
I am creating one GUI in swing Java. I have to use one button
What is the difference between creating one index across multiple columns versus creating multiple
I try to run one program in myeclipse where after creating one web project
I'm looking for some pros and cons of creating one operation per wdsl against

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.