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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:45:36+00:00 2026-05-27T19:45:36+00:00

I m trying to create a tableLayout. My problem is that my table content

  • 0

I m trying to create a tableLayout.

My problem is that my table content doesn’t fit in the screen.

This is my result:

enter image description here

as you can see the last row is cut..How can i fix it?This is my code of xml:

    <ScrollView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="3"
        android:scrollbars="none" >

        <TableLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
           android:layout_weight="3"
            android:stretchColumns="1" >

            <!-- grammi stoixeiwn pinaka -->

            <TableRow >

                <TextView
                    android:layout_column="1"
                    android:layout_gravity="left"
                    android:layout_marginLeft="10px"
                    android:padding="3dip"
                    android:text="Αριθμός"
                    android:textColor="#e5e975"
                    android:textSize="8px" />

                <TextView
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"
                    android:text="Όνομα"
                    android:textColor="#e5e975"
                    android:textSize="8px" />

                <TextView
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"
                    android:text="|"
                    android:textColor="#e5e975"
                    android:textSize="8px" />

                <TextView
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"
                    android:text="Διαδρομή"
                    android:textColor="#e5e975"
                    android:textSize="8px" />

                <TextView
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"
                    android:text="|"
                    android:textColor="#e5e975"
                    android:textSize="8px" />

                <TextView
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"
                    android:text="Μέτρα"
                    android:textColor="#e5e975"
                    android:textSize="8px" />

                <TextView
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"
                    android:text="|"
                    android:textColor="#e5e975"
                    android:textSize="8px" />

                <TextView
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"
                    android:text="Παρατηρήσεις"
                    android:textColor="#e5e975"
                    android:textSize="8px" />
            </TableRow>

            <View
                android:id="@+id/view1"
                android:layout_width="fill_parent"
                android:layout_height="2dp"
                android:background="#ffffff" />

            <!-- TableRow 1 -->

            <TableRow >

                <TextView
                    android:id="@+id/txt1a"
                    android:layout_column="1"
                    android:layout_gravity="left"
                    android:layout_marginLeft="10px"
                    android:padding="3dip"
                    android:textColor="#ffffff"                     android:text="1"

                    android:textSize="8px" />

                <TextView
                    android:id="@+id/txt2a"
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"                     android:text="Όνομα"

                    android:textColor="#ffffff"
                    android:textSize="8px" />

                <TextView
                    android:id="@+id/txt3a"
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"                     android:text="|"

                    android:textColor="#ffffff"
                    android:textSize="8px" />

                <TextView
                    android:id="@+id/txt4a"
                    android:layout_gravity="center"
                    android:gravity="left"                    android:text="Όνομα"

                    android:padding="3dip"
                    android:textColor="#ffffff"
                    android:textSize="8px" />

                <TextView
                    android:id="@+id/txt5a"
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"                    android:text="|"

                    android:textColor="#ffffff"
                    android:textSize="8px" />

                <TextView
                    android:id="@+id/txt6a"
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"
                    android:textColor="#ffffff"                    android:text="Όνομα"

                    android:textSize="8px" />

                <TextView
                    android:id="@+id/txt7a"
                    android:layout_gravity="center"
                    android:gravity="left"
                    android:padding="3dip"                    android:text="|"

                    android:textColor="#ffffff"
                    android:textSize="8px" />

                <TextView
                    android:id="@+id/txt8a"
                    android:layout_gravity="center"                    android:text="Όνομα"

                    android:gravity="left"
                    android:padding="3dip"
                    android:textColor="#ffffff"
                    android:textSize="8px" />
            </TableRow>
//more table rows here


</TableLayout></ScrollView>

EDIT:

I want to make i t look like:

enter image description here

  • 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-27T19:45:36+00:00Added an answer on May 27, 2026 at 7:45 pm

    Try setting android:layout_width="wrap_content" on the TextView in the last column.

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

Sidebar

Related Questions

I'm trying to create an android screen that has a TableLayout anchored to the
I'm trying create this function such that if any key besides any of the
I am trying to create a layout that extends to the whole screen if
I am trying create a WCF service that leverages the WPF MediaPlayer on the
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Trying to create my first iPhone app that would play back audio. When I
Trying to create a small monitor application that displays current internet usage as percentage
I'm using eclipse + android SDK. I'm trying to create a table with data
I am trying to create a basic datasheet in my application using a TableLayout.
I am trying to make a table inside a table so I can organize

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.