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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:04:09+00:00 2026-05-24T09:04:09+00:00

I’m trying to put a TextView into my TableView so that it doesn’t push

  • 0

I’m trying to put a TextView into my TableView so that it doesn’t push the spinner box and the other TextView off of the screen. I’ve tried changing the layout_width, yet that has not worked. I have also tried changing the layout_width of the TableRow, but that is not working, either. So how can I fit the text of the left-most textView in the row?

<TableLayout android:id="@+id/abilityScoreTable"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" android:padding="0dip">
    <TextView android:layout_height="wrap_content"     android:textAppearance="?android:attr/textAppearanceLarge" android:layout_width="wrap_content" android:gravity="center" android:textSize="30dip" android:id="@+id/abilityScoreBannerText" android:text="Ability Scores"></TextView>
    <TableRow android:layout_width="wrap_content" android:gravity="center" android:id="@+id/tableRow1" android:layout_height="wrap_content">
       <TextView android:text="zero" android:id="@+id/StrengthBonusText" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
        <Spinner android:id="@+id/StrengthSpinner" android:layout_width="10px" android:layout_height="wrap_content" android:entries="@array/string_ability_scores"></Spinner>
        <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge" android:id="@+id/StrengthTextView" android:text="Strength"
android:textSize="30dip"></TextView>
    </TableRow>
    <TableRow android:layout_height="wrap_content"
android:layout_width="wrap_content" android:id="@+id/tableRow2" android:gravity="center">
        <Spinner android:layout_height="wrap_content" android:layout_width="wrap_content"
android:id="@+id/dexteritySpinner" android:entries="@array/string_ability_scores"></Spinner>
        <TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:text="Dexterity" android:textSize="30dip"></TextView>
    </TableRow>
    <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content"
android:entries="@array/string_ability_scores" android:layout_gravity="center"
android:gravity="center" android:id="@+id/TableRow3">
        <Spinner android:id="@+id/ConstitutionSpinner"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:entries="@array/string_ability_scores"></Spinner>
        <TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Constitution" android:textSize="30dip"
android:id="@+id/ConstitutionTextView"></TextView>
    </TableRow>
    <TableRow android:layout_height="wrap_content"
android:layout_width="wrap_content" android:id="@+id/tableRow3" android:gravity="center">
        <Spinner android:layout_height="wrap_content"
android:id="@+id/intelligenceSpinner"
android:layout_width="wrap_content"
android:entries="@array/string_ability_scores"></Spinner>
        <TextView android:id="@+id/textView1"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Intelligence" android:textSize="30dip"></TextView>
    </TableRow>
    <TableRow android:layout_height="wrap_content"
android:layout_width="wrap_content" android:id="@+id/tableRow4"
android:gravity="center">
        <Spinner android:layout_height="wrap_content"
android:id="@+id/WisdomSpinner" android:layout_width="wrap_content"
android:entries="@array/string_ability_scores"></Spinner>
        <TextView android:id="@+id/textView3"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge" android:text="Wisdom"
android:textSize="30dip"></TextView>
    </TableRow>
    <TableRow android:layout_height="wrap_content"
android:layout_width="wrap_content" android:id="@+id/tableRow5"
android:gravity="center">
        <Spinner android:layout_height="wrap_content"
android:id="@+id/CharismaSpinner" android:layout_width="wrap_content"
android:entries="@array/string_ability_scores"></Spinner>
        <TextView android:id="@+id/textView4"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Charisma" android:textSize="30dip"></TextView>
    </TableRow>
</TableLayout>

Currently, it looks like this:

Layout with TextView off-screen

On the top-most spinner there’s suppose to be a number to the left. I’m trying to squeeze it on to the screen and have all three fit.

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

    im not sure what you want any way check this and tell me is this what you are trying.

    enter image description here

    if so here is the xml.

    <TableRow android:id="@+id/tableRow1">
        <TextView android:text="zero" android:id="@+id/StrengthBonusText"></TextView>
        <Spinner android:id="@+id/StrengthSpinner" />
        <TextView android:id="@+id/StrengthTextView"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:text="Strength" android:textSize="30dip" />
    </TableRow>
    
    <TableRow android:id="@+id/tableRow2">
        <View android:visibility="invisible" android:layout_height="0dip" />
        <Spinner android:id="@+id/dexteritySpinner" />
        <TextView android:id="@+id/textView2" android:textAppearance="?android:attr/textAppearanceLarge"
            android:text="Dexterity" android:textSize="30dip" />
    </TableRow>
    
    <TableRow android:id="@+id/TableRow3">
        <View android:visibility="invisible" android:layout_height="0dip" />
        <Spinner android:id="@+id/ConstitutionSpinner"></Spinner>
        <TextView android:id="@+id/ConstitutionTextView"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:text="Constitution" android:textSize="30dip"></TextView>
    </TableRow>
    <TableRow android:id="@+id/tableRow3">
        <View android:visibility="invisible" android:layout_height="0dip"/>
        <Spinner android:id="@+id/intelligenceSpinner"></Spinner>
        <TextView android:id="@+id/textView1" android:textAppearance="?android:attr/textAppearanceLarge"
            android:text="Intelligence" android:textSize="30dip"></TextView>
    </TableRow>
    <TableRow android:id="@+id/tableRow4">
        <View android:visibility="invisible" android:layout_height="0dip"/>
        <Spinner android:id="@+id/WisdomSpinner"></Spinner>
        <TextView android:id="@+id/textView3" android:textAppearance="?android:attr/textAppearanceLarge"
            android:text="Wisdom" android:textSize="30dip"></TextView>
    </TableRow>
    <TableRow android:id="@+id/tableRow5">
        <View android:visibility="invisible" android:layout_height="0dip"/>
        <Spinner android:id="@+id/CharismaSpinner"></Spinner>
        <TextView android:id="@+id/textView4" android:textAppearance="?android:attr/textAppearanceLarge"
            android:text="Charisma" android:textSize="30dip"></TextView>
    </TableRow>
    

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the 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.