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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:35:57+00:00 2026-05-24T04:35:57+00:00

once more: me. I have a TableLayout (http://imgur.com/XYdcg) for my SingleItemAdvancedView how i like

  • 0

once more: me.

I have a TableLayout (http://imgur.com/XYdcg) for my “SingleItemAdvancedView” how i like to call it 😉
The thing is, I want the data [the TextViews which don’t have string *Lbl as android:text set] (so NOT the description like : “name:” , “id:” etc.) to be displayed on the right side of the whole display, not like it’s now ( they are displayed right next to the left table-column). I tried to align the layout to the right side, as well as only the text (with layout_gravity and gravity only). everything didn’t work. My widths are all set to fill_parent , so I simply don’t understand why. Help needed! Thanks!

My XML for the activity looks like this:

<?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">


  <TableRow>
    <TextView android:text="@string/idLbl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
               />
    <TextView android:text=""
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/itemidv" />
  </TableRow>
  <TableRow>
    <TextView android:text="@string/nameLbl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" />
    <TextView android:text=""
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/namev" />
  </TableRow>
  <TableRow>
    <TextView android:text="@string/amountLbl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" />
    <TextView android:text=""
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/amountv" />
  </TableRow>
  <TableRow>
    <TextView android:text="@string/unitLbl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" />
    <TextView android:text=""
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/unitv" />
  </TableRow>
  <TableRow>
    <TextView android:text="@string/ppuLbl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" />
    <TextView android:text=""
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/ppuv" />
  </TableRow>
  <TableRow>
    <TextView android:text="@string/totalLbl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" />
    <TextView android:text=""
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/totalv" />
  </TableRow>
  <TableRow>
    <TextView android:text="@string/commentLbl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" />
    <TextView android:text=""
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/commentv" />
  </TableRow>
   <TableRow>
    <TextView android:text="@string/enterqrLbl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" />
    <TextView android:text=""
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/qrcodev" />
  </TableRow>
   <Button android:text="@string/delete"
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:id="@+id/deleteItemBtn"
           android:layout_marginTop="20dp"
           android:onClick="btnListener" />
</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-24T04:35:58+00:00Added an answer on May 24, 2026 at 4:35 am

    You could add android:stretchColumns=”0″ to TableLayout. So you would have something like this:

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

    If you want both columns to stretch equally you could use ‘*’ instead of ‘0’.

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

Sidebar

Related Questions

I want to use this jQuery gallery more than once on my page: http://workshop.rs/2010/07/create-image-gallery-in-4-lines-of-jquery/
Is it better to evaluate bool once but have more code like this if
I would like to append append an item more than once. e.g listA =
I would like to have one input field, where user will input search data.
sorry for annoy u once more =P I have a report where i must
I have two span tags. I'd like to swap the content between them once
I have an rather odd problem with Visual Studio once more. I have a
once more i'm here asking help on seam subject. Currently we have the following
I have a UserControl that I would like to be able to have more
Buried in mySQL syntax and query structure problems once more. I'm currently doing this

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.