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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:38:42+00:00 2026-05-20T08:38:42+00:00

I have a Layout (using TableLayout, etc…) which works well. It seems like this:

  • 0

I have a Layout (using TableLayout, etc…) which works well. It seems like this:
https://i.stack.imgur.com/jLFhA.png

I would like to rewrite it using one RelativeLayout:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"  android:layout_width="fill_parent" android:layout_height="fill_parent"  android:padding="6dip">

<TextView android:id="@+id/textViewTopicTitle"      
android:layout_width="fill_parent" android:layout_height="wrap_content"         android:text="Title" android:background="#880000"></TextView>   

<TextView android:id="@+id/textViewSolution"        
android:layout_width="wrap_content" android:layout_height="wrap_content"        android:layout_below="@id/textViewTopicTitle" android:text="Description...."        android:background="#008800"></TextView>    

<Button android:text="Start" android:id="@+id/buttonTopic"      android:layout_width="wrap_content" android:layout_height="wrap_content"        android:layout_toRightOf="@id/textViewSolution" android:layout_below="@id/textViewTopicTitle"       
android:layout_marginRight="6dip">
</Button> 

</RelativeLayout>

It’s not correct because the green TextView not fill as many space as possible.

So I change:
android:id=”@+id/textViewSolution” android:layout_width=”fill_parent“

But in this case the button is missing!

https://i.stack.imgur.com/ugzeq.png

My question is: is that possible to create such a layout using only RelativeLayout?

  • 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-20T08:38:43+00:00Added an answer on May 20, 2026 at 8:38 am

    try below xml might help the button is somewhat tall

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="6dip">
        <TextView
            android:id="@+id/textViewTopicTitle"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="Title"
            android:background="#880000"></TextView>
        <TextView
            android:id="@+id/textViewSolution"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/textViewTopicTitle"
            android:text="Description...."
            android:background="#008800"
            android:layout_toLeftOf="@+id/buttonTopic"></TextView>
        <Button
            android:text="Start"
            android:id="@+id/buttonTopic"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/textViewTopicTitle"
            android:layout_alignParentRight="true">
        </Button>
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an item layout like this, and set the background by using item
I have created a simple layout using the HTML div tag. I would like
My layout looks like: <TableLayout> <TableRow></TableRow> <TableLayout> <TableRow></TableRow> <TableRow></TableRow> <TableRow></TableRow> </TableLayout> </TableLayout> I have
Context: I have a TableLayout (created using XML), which has one TableRow, which has
I am using a tableLayout for this application and I am trying to have
I have the following table layout which I'm using to display image buttons in
i am creating a new android application.i am using the table layout. I have
I have a doubt in layouts.I have designed one layout using group layout using
I have a 3 column layout using table-less design. <div id=main> <div id=left></div> <div
I have selected two components in the Customize Layout screen using a hint from

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.