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

  • Home
  • SEARCH
  • 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 8353443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:15:40+00:00 2026-06-09T09:15:40+00:00

My Tablet app shows a ListView with multiple TextViews in each line item (using

  • 0

My Tablet app shows a ListView with multiple TextViews in each line item (using custom cursor adapter). I have around 6-7 columns, What is the best way to give equal spaces to all columns?

Right now I tried:

  • Same weight on every TextView. But this is never properly aligned.
  • Used max width along with 1st, still no luck, one can easily overflow and push the next one to right.

    <TextView
        android:layout_width="20dp"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:layout_weight="1"
        android:text="column 1"
        android:textSize="22sp" />
    
  • 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-06-09T09:15:42+00:00Added an answer on June 9, 2026 at 9:15 am

    Weights are fine, but you have to set android:layout_width to 0dp every time you use a layout weight, else your views may not be scaled properly.

    Also, don’t mix fixed widths with layout weights. If you choose to use weights, use them everywhere in your row layout.

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

Sidebar

Related Questions

I have developed my app for tablet. Now I need to convert it to
In the tablet layout of my app, I have three ListFragments and one regular
I am creating an app for Archos 7 tablet .I have customized a emulator
In WPF app I have a ListView: <ListView Height=100 Width=434 Margin=0,2,0,0 x:Name=lvItems ItemsSource={Binding ElementName=MainWindow,
I have an HTML5 app running on an Android tablet with several input fields
I have an app that's a simple clone of reddit. Using Devise you can
I have a multitoch-enabled tablet PC running Windows 7. However, when using the stylus
I'm developing a tablet app on a Samsung Galaxy Tab 10.1 (Android 3.2). The
I'm working on a tablet app which lets you view videos and page through
I am trying to build a tablet optimized app and I would like to

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.