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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:47:19+00:00 2026-05-24T18:47:19+00:00

Here is my xml layout code <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent>

  • 0

Here is my xml layout code

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TextView android:id="@+id/titleset"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Orb Runner"
    android:layout_gravity="center"
    android:gravity="center"
    android:layout_marginTop="20dp"
    android:textSize="45sp"
    android:textColor="#FF3366CC"/>

    <TableLayout android:layout_width="fill_parent"
    android:layout_height="wrap_content" 
    android:layout_marginTop="30dp"
    android:gravity="center"
    android:layout_gravity="center">

    <TableRow android:layout_gravity="center"
    android:gravity="center" android:layout_width="fill_parent">

    <TextView android:id="@+id/newgamebut"
    android:layout_marginRight="5dp"
    android:text="New Game"
    style="@style/Button" android:layout_height="fill_parent" android:layout_width="wrap_content"/>

    <TextView android:id="@+id/newgamebut"
    android:layout_marginLeft="5dp"
    android:text="High Score"
    android:layout_gravity="center"
    style="@style/Button" android:layout_height="fill_parent" android:layout_width="fill_parent"/>

    </TableRow>

    <TableRow android:layout_gravity="center"
    android:gravity="center" android:layout_width="fill_parent">

    <TextView android:id="@+id/newgamebut"
    android:layout_marginRight="5dp"
    android:text="Settings"
    style="@style/Button" android:layout_height="fill_parent" android:layout_width="wrap_content"/>

    <TextView android:id="@+id/newgamebut"
    android:layout_marginLeft="5dp"
    android:text="Instructions"
    android:layout_gravity="center"
    style="@style/Button" android:layout_height="fill_parent" android:layout_width="fill_parent"/>

    </TableRow>

    <TableRow android:layout_gravity="center"
    android:gravity="center" android:layout_width="fill_parent">

    <TextView android:id="@+id/newgamebut"
    android:layout_marginRight="5dp"
    android:text="About"
    style="@style/Button" android:layout_height="fill_parent" android:layout_width="wrap_content"/>

    <TextView android:id="@+id/newgamebut"
    android:layout_marginLeft="5dp"
    android:text="Exit Game"
    android:layout_gravity="center"
    style="@style/Button" android:layout_height="fill_parent" android:layout_width="fill_parent"/>

    </TableRow>

    </TableLayout>
</LinearLayout>

What i want to do is to get the instructions textview/button to be completely aligned with the row on top of it currently this is how it looks like.

| New Game |   | High Scores |
| Settings |  | Instructions |
|   About  |   |  Exit Game  |

I want it to look like this

| New Game |   | High Scores |
| Settings |   | Instructions|
|  About   |   |  Exit Game  |
  • 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-24T18:47:20+00:00Added an answer on May 24, 2026 at 6:47 pm

    You can use the android:weightSum and android:layout_weight attributes for the textview/button to assign a relative width.

    It might sound weird but I would also recommend using android:layout_width="0dp" for your buttons and textviews when using layout_weight.

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

Sidebar

Related Questions

Here's my layout code; <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent> <TextView android:text=@string/welcome
Here is my layout <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:id=@+id/LinearLayout01 android:layout_height=wrap_content> <Spinner android:text=@+id/AutoCompleteTextView01
I have got my main.xml as follows: <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical android:layout_width=fill_parent
Here is my XML Response: <DIDL-Lite xmlns=urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/ xmlns:dc=http://purl.org/dc/elements/1.1/ xmlns:upnp=urn:schemas-upnp-org:metadata-1-0/upnp/ <item id=1182 parentID=40 restricted=1> <title>Hot
UPDATE : Got a reply from Google that it isn't possible: http://code.google.com/p/android/issues/detail?id=11752&can=1&q=videoview&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars This should
Here's the XML code I'm working with: <inventory> <drink> <lemonade supplier=mother id=1> <price>$2.50</price> <amount>20</amount>
Here is my sample code: from xml.dom.minidom import * def make_xml(): doc = Document()
I have a widget layout xml which sets the src to the delivered android
EditText doesn't fill the whole height of the window. Here is the code: <?xml
Here's the XML file i'm working on: <list> <activity>swimming</activity> <activity>running</activity> <activity>soccer</activity> </list> The index.php,

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.