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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:48:40+00:00 2026-05-24T22:48:40+00:00

Is it possible to merge two layout into one. Suppose i have two TextView

  • 0

Is it possible to merge two layout into one. Suppose i have two TextView of username and password in first layout vertically and two EditText in the second layout vertically. After merging this two layout the final layout will contain two row’s of TextView and EditText.

Oh one thing left is that when merging the first layout move from left to right and the second layout will move from right to left.

  • 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-24T22:48:40+00:00Added an answer on May 24, 2026 at 10:48 pm

    You have options of doing this by applying TranslateAnimation. Applying Animation it seem that two layout is merging and making one. Hope the following code will help you.

    layout.xml…

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
     >
    <Button
    android:id="@+id/btn1"
    android:text="Button 1"
    android:layout_width="fill_parent" 
    android:layout_height="45dip" 
    android:layout_marginTop="10dip"
    />
    
    <Button
    android:id="@+id/btn2"
    android:text="Button 2"
    android:layout_width="fill_parent" 
    android:layout_height="45dip"
    android:layout_marginTop="10dip" />
    
    <Button
    android:id="@+id/btn3"
    android:text="Button 3"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:layout_marginTop="10dip"
    />
    
    <Button
    android:id="@+id/btn4"
    android:text="Button 4"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:layout_marginTop="10dip"
    />
    

    MyActivity.java

        Button b1, b2, b3, b4;
        TranslateAnimation left, right;
    
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    
        left = new TranslateAnimation(-480, 10, 0, 10);
        right= new TranslateAnimation( 480, 10, 0, 10);
    
        left.setDuration(2000);
        right.setDuration(2000);
    
        left.setRepeatCount( 1 );
        right.setRepeatCount( 1 );
    
        b1 =(Button)findViewById( R.id.btn1);
        b2 =(Button)findViewById( R.id.btn2);
        b3 =(Button)findViewById( R.id.btn3);
        b4 =(Button)findViewById( R.id.btn4);
    
        b1.startAnimation(left);
        b2.startAnimation(right);
        b3.startAnimation(left);
        b4.startAnimation(right);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to paqckage multiple rpms into one file. I have got two
Possible Duplicate: How to merge two images into a single Jpeg I have 2
Possible Duplicate: What is the best method to merge two PHP objects? I have
I would merge these two methods into one... to do that i need to
Is there a way to merge two exe files into one, programmatically, so that
Is it possible to merge two apps, one e-commerce application based on PrestaShop with
Possible Duplicate: Merge 2 Arrays and Sum the Values (Numeric Keys) I have two
What are the possible methods to merge values from two mutually exclusive DataSets' into
Is it possible to merge elements using XSLT. If I have the following XML
Is it possible to merge a range of revisions from one branch to another

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.