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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:48:16+00:00 2026-05-28T19:48:16+00:00

i have several xml layouts on my project. when the application start the main.xml

  • 0

i have several xml layouts on my project. when the application start the main.xml layout is load on the device. when i load a second xml layout it get infront from the main but do not cover all the screen and also you are albe to see that behind is the main.xml layout

the second layout am using match_parent and the xml code is

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="match_parent" android:weightSum="1">

//something

</LinearLayout>

this tham am trying to do is that the second layout to take all the screen and not be able to see the main on the back .
is this possible to be done?

EDIT

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

    <TableLayout android:layout_width="match_parent"
        android:layout_height="match_parent" >
    <TableRow >
        <TextView android:text="Password Recovery" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="match_parent"></TextView>

    </TableRow>
    <TableRow >
    <TextView android:text="Username:  " android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
    <EditText android:text=" " android:id="@+id/UsernameRecovery" android:layout_width="100dp" android:layout_height="45dp"></EditText>
    </TableRow>

   <TableRow >

    <Button android:text="Submit" android:id="@+id/SubmitRecoveryPass" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
    <Button android:text="Cancel" android:id="@+id/CancelRecoveryPass" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>

    </TableRow>
    </TableLayout>

</LinearLayout>  

what i have to change in order to be full screen and not to be able see on the back

  • 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-28T19:48:17+00:00Added an answer on May 28, 2026 at 7:48 pm

    If you want is to be done on Single activity then use to hide the Layout while showing another layout.

    Means hide main Layout while open the Second Layout. And Same thing for Main Layout also.

    Adnd if you dont want it to be done in Single activity then try this.

    Create two xml. as like main.xml and second.xml
    now in calling of first activity setContentLayout(R.layout.main);
    and while call second activity then setContentLayout(R.layout.second);

    By defalut android hide the first activity and show the second activity.

    Yes but make sure that you are using fill_parent on the parent layout of the both the xml.

    Hope it will help you.

    Enjoy. :))

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

Sidebar

Related Questions

In my layout xml file I have several buttons like this which share the
I have an Android Library Project that contains several styles/themes defined in its styles.xml
I have several xml files, the names of which are stored in another xml
I have several existing XML schema files with a defined data model. I would
I have several templates that match various nodes in an xml document. If I
If I have several Section elements in an XML document, what XQuery do I
I have an XML document, several actually, that will be editable via a front-end
I'm trying to have a script automatically transform an xml file into several html
I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on
I have several ListActivties set up in my Android Application. What I am trying

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.