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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:11:25+00:00 2026-05-26T09:11:25+00:00

<?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:gravity="center" android:layout_height="match_parent"> <LinearLayout android:layout_height="wrap_content" android:layout_marginLeft="5dip" android:layout_marginRight="10dip" android:layout_weight="1"

  • 0
<?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:gravity="center"
  android:layout_height="match_parent">
    <LinearLayout android:layout_height="wrap_content" android:layout_marginLeft="5dip" android:layout_marginRight="10dip" android:layout_weight="1" android:background="@drawable/gray_bg" android:gravity="center" android:id="@+id/linearLayout2" android:orientation="vertical" android:layout_width="wrap_content">
    <LinearLayout android:layout_height="wrap_content" android:layout_marginTop="10dip" android:gravity="center" android:id="@+id/linearLayout1" android:layout_width="wrap_content">
        <Button
            android:text="Offers" android:layout_marginRight="10dip"    android:background="@drawable/gray_btn"
            android:id="@+id/button1"   android:layout_width="wrap_content"
            android:layout_height="wrap_content">
        </Button>
        <Button android:text="Daily Deals" android:layout_marginRight="10dip"   android:background="@drawable/gray_btn"
            android:layout_width="wrap_content" android:layout_height="wrap_content"
            android:id="@+id/button2">
        </Button>
        <Button android:text="Photos" android:layout_marginRight="10dip" android:background="@drawable/gray_btn"
            android:id="@+id/button3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">
        </Button>
    </LinearLayout>
    <LinearLayout android:layout_height="wrap_content" android:layout_marginTop="10dip" android:gravity="center" android:id="@+id/linearLayout1" android:layout_width="wrap_content">
        <Button
            android:text="Videos" android:layout_marginRight="10dip" android:background="@drawable/gray_btn"
            android:id="@+id/btnVideos"     android:layout_width="wrap_content"
            android:layout_height="wrap_content">
        </Button>
        <Button android:text="Maps" android:layout_marginRight="10dip" android:background="@drawable/gray_btn"
            android:layout_width="wrap_content" android:layout_height="wrap_content"
            android:id="@+id/button2">
        </Button>
        <Button android:text="Email" android:layout_marginRight="10dip" android:background="@drawable/gray_btn"
            android:id="@+id/button3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">
        </Button>
    </LinearLayout>
    <LinearLayout android:layout_height="wrap_content" android:layout_marginTop="10dip" android:gravity="center" android:id="@+id/linearLayout1" android:layout_width="wrap_content">
        <Button android:id="@+id/btnRecommend"
             android:background="@drawable/recommend_btn"
             android:scaleType="fitXY" 
             android:layout_height="wrap_content"
             android:onClick="btnSubNavigationPressed" android:layout_width="wrap_content">
             </Button>
    </LinearLayout>
    </LinearLayout>
  
</LinearLayout>

I want to make the last button width equals to just the above tow rows of buttons,

How i can do this, please give me any hint to do this.

  • 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-26T09:11:26+00:00Added an answer on May 26, 2026 at 9:11 am

    you can do in two ways:

    either:

    android:layout_span="3"
    

    or

    android:layout_weight="1" 
    android:layout_height="wrap_content" 
    android:layout_width="0dip"
    

    may one of this work for you…

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

Sidebar

Related Questions

Here is the xml file of my Android widget: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
res/xml/prefs.xml file: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <com.estysoft.android.preference.SeekBarPreference android:dialogMessage="Something duration" android:key="duration" android:summary="How long something
I have this xml-file: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#444548"> <ImageView android:layout_width="wrap_content"
Here is my XML document: <?xml version="1.0" encoding="UTF-8"?> <container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container"> <rootfiles> <rootfile full-path="content.opf"
I've tried for hours but nothing achieved. Thats my code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout
I created an App.config file in my WPF application: <?xml version="1.0" encoding="utf-8" ?> <configuration>
I have the following XML: <?xml version="1.0" encoding="UTF-8"?> <Data> <Set> <Tables> <Table> <Tablehead> <C>Name</C>
I have the following simplified XML structure: <?xml version="1.0" encoding="UTF-8"?> <ExportData> <TransportHeader> <Timestamp>2011-01-16 06:00:33</Timestamp>
Having a XML document like this: <?xml version="1.0" encoding="UTF-8"?> <records type="array"> <record> <name>svn</name> <record-type>A</record-type>
I have the following XML <?xml version=1.0 encoding=ISO-8859-1 ?> - <DEVICEMESSAGES> <VERSION xml=1 checksum=

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.