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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:08:03+00:00 2026-05-25T16:08:03+00:00

In my application I have 2 layouts. One’s is root layout that changes dynamically

  • 0

In my application I have 2 layouts. One’s is root layout that changes dynamically and the second is just a form that opens many times. The form must be child of the root layout but I’m failing to perform so.

I assume that I should simply use:

main.AddView(formLayout)

but I can’t figure out how get this formLayout object.

Will thank you for possible answers.

  • 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-25T16:08:03+00:00Added an answer on May 25, 2026 at 4:08 pm

    With the advice of cjk I wrote piece of code that actually answers my question:

    setContentView(R.layout.main);
    main = ((ViewGroup)findViewById(android.R.id.content));
    LayoutInflater inflater = this.getLayoutInflater();
    ViewGroup form=  (ViewGroup) inflater.inflate(R.layout.formLayout, null);
    main.addView(form);
    

    Thank you all

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

Sidebar

Related Questions

My application containing different layouts.one of them is a linear layout.it's content is dynamically
I have an application that has a primary layout of portrait (it is fixed
In my Android application, I have an activity with three layouts: A left layout,
I'm developing a application with CakePHP, and I have two layouts: one for the
I would like to have 2 separate Layouts in my application. Let's say one
I have one HTML file located in app/views/layouts/application.html.erb I use <%=yield=> to render the
I have an application that uses xml config file, where I'm describing layouts for
I have an application layout in my rails app to give a default header/footer
I am using Tiles within my web-application. I have a standard-layout (standard.jsp) within the
I have two libraries and a single application assembly project layout and I'm wondering

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.