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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:01:12+00:00 2026-05-26T10:01:12+00:00

I am using a tableLayout for this application and I am trying to have

  • 0

I am using a tableLayout for this application and I am trying to have it look like this

http://i698.photobucket.com/albums/vv350/hoosierfan24/appLayout.png

however I cant get it to look like that, and that is my problem. When I attempt to add a second button into the first row, the button is placed underneath the other button not along side of it. How can I change it to make the button appear along side the other?

<?xml version="1.0" encoding="utf-8"?>

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:stretchColumns="*">

    <TableRow>
        <Button android:marqueeRepeatLimit="marquee_forever"
            android:layout_height="74dp" android:id="@+id/button1"
            android:visibility="visible" android:text="Next Picture"
            android:linksClickable="true" android:background="@raw/arrow"
            android:layout_width="122dp"></Button>

            <Button android:marqueeRepeatLimit="marquee_forever"
            android:layout_height="74dp" android:id="@+id/button3"
            android:visibility="visible" android:text="xxxx"
            android:linksClickable="true" android:background="@raw/arrow2"
            android:layout_width="122dp"></Button>

    </TableRow>

    <TableRow>
        <ImageView android:id="@+id/imageView1"
            android:keepScreenOn="true" android:src="@raw/img1"
            android:layout_height="328sp" android:layout_width="323sp"
            android:hapticFeedbackEnabled="false"></ImageView>
    </TableRow>

    <TableRow>
        <Button android:text="Previous Picture" android:onClick="prevPicHandler"
            android:marqueeRepeatLimit="marquee_forever" android:linksClickable="true"
            android:visibility="visible" android:background="@raw/arrow2"
            android:layout_width="122dp" android:layout_height="74dp"
            android:id="@+id/button2"></Button>
    </TableRow>
</TableLayout>
  • 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-26T10:01:13+00:00Added an answer on May 26, 2026 at 10:01 am

    I think for this you should use LinearLayouts instead. Like this:

    <?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:orientation="vertical">
    
        <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
            <Button android:marqueeRepeatLimit="marquee_forever"
            android:layout_height="74dp" android:id="@+id/button1"
            android:visibility="visible" android:text="Next Picture"
            android:linksClickable="true" android:background="@raw/arrow"
            android:layout_width="122dp"></Button>
    
            <Button android:marqueeRepeatLimit="marquee_forever"
            android:layout_height="74dp" android:id="@+id/button3"
            android:visibility="visible" android:text="xxxx"
            android:linksClickable="true" android:background="@raw/arrow2"
            android:layout_width="122dp"></Button>
    
        </LinearLayout>
    
    
        <ImageView android:id="@+id/imageView1"
            android:keepScreenOn="true" android:src="@raw/img1"
            android:layout_height="328sp" android:layout_width="323sp"
            android:hapticFeedbackEnabled="false"></ImageView>
    
    
        <Button android:text="Previous Picture" android:onClick="prevPicHandler"
            android:marqueeRepeatLimit="marquee_forever" android:linksClickable="true"
            android:visibility="visible" android:background="@raw/arrow2"
            android:layout_width="122dp" android:layout_height="74dp"
            android:id="@+id/button2"></Button>
    
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I stack with this, I'm trying to create application using TabLayout. I have 3
I have a Layout (using TableLayout, etc...) which works well. It seems like this:
I am trying to create a basic datasheet in my application using a TableLayout.
I am trying to add TableLayout to the LinearLayout from resourse(xml) using programmable way.
I have a Silverlight application with some maps, and in the same page this
I'm using a TableLayout in Android. Right now I have one TableRow with two
I'm using a TableLayout for an Activity and if I have more than a
I want to crate custom TableLayout with rows like this: TV is for TextView,
I am working on a droid application, and I am using a TableLayout but
Hi all I have created layout using following code <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android

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.