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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:07:46+00:00 2026-06-05T09:07:46+00:00

My question is this: In android programming can nest a layout in a layout?

  • 0

My question is this:
In android programming can nest a layout in a layout?
The problem I have run into is my application is crashing and the only thing I have added is:

    RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
    params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM,RelativeLayout.TRUE);
    newSheetLayoutH.setLayoutParams(params);

newSheetLayoutH is the layout nested in another layout.

My aim is to create a second layout (which is the one in question), that layout will be placed at the bottom of the main layout which is newSheetLayoutV, and centred(not mandatory to centre but appreciated).

Also if there is a way to potentially throw the buttons (three buttons) into the bottom corner of the newSheetLayoutV along the horizontal layout.

If more information is needed I will do my best to provide it.

Thanks 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-06-05T09:07:49+00:00Added an answer on June 5, 2026 at 9:07 am

    What is the kind of layout in which newSheetLayoutH is nested in?

    Make sure that the following is true

    When you want to set the Layout Parameters (LayoutParams) of a certain view, the kind of these LayoutParams should be the same as the parent of the view you want to set the LayoutParams for.

    For example, if you have a parent of kind LinearLayout, any child should have LayoutParams of kind LinearLayout.LayoutParams.

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

Sidebar

Related Questions

This question occured to me while programming a Android application, but it seems to
I'm fairly new to Android programming, so this may be a simple question, but
I have this question when I am studying an open source Android project. I
I'm developing an Android 3.1 and above application, but this question is not specific
This is my first question at stackoverflow :-). However, I've started to Android programming
I'm new to android programming and i have a question I'm developing an alarm
I'm new to android programming, but one thing that I can't seem to get
i have just started programming for android and i have a little question i
I'm a beginner in Android development but not in programming itself. Anyway, this question
I'm completely new to Eclipse/Java/Android programming, so this might sound like a dumb question,

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.