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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:25:58+00:00 2026-06-17T13:25:58+00:00

I have 2 textviews per horizontal linearlayout row on two rows. All the views

  • 0

I have 2 textviews per horizontal linearlayout row on two rows. All the views are set as 0dp width and weight 1. They all have the same font and text size etc.
The views on the left side are gravity aligned left and the two on the right are gravity aligned right.

When both textviews text length overflow android always gives precedence to the textview on the right and ellipse the views on the left.

Is there a method that can be used to control which view ellipses when both views on the same row would not fit.

Ideally I want the views on the right to ellipse in favor of those on the left. Or failing that make them ellipse evenly per row.

thanks

  • 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-17T13:25:59+00:00Added an answer on June 17, 2026 at 1:25 pm

    i don’t think there is a feature of order of the views to manage how they are measured.

    you can customize the linearLayout by extending it in order to support this feature , but this is too hardcore for this task .

    i would suggest putting the problematic views (those that take too much space and you don’t with them to take too much space) into a new layout , and set its width to match_parent .

    this way , it should take the rest of the space at the end of the measurements of the other views ,

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

Sidebar

Related Questions

So I've got two TextViews per row in a ListView . One should be
I have multiple textviews in main.xml <LinearLayout... > <textview adndroid:tag=A> ... till to Z.
I have a problem with two Textviews on the same height in a RelativeLayout
I have a ListView in my activity. Each row includes three TextViews in this
I have two TextViews that displays numbers from 1-6, I need to make a
I have listview with custom adapter. In each row i have 2 textviews and
I want to create ExpandableListView. It contains 2 rows, the row children are textviews
I have to display the textviews dynamically in android and need to write onclick
I have a custom adapter for my ListView which has multiple TextViews. I want
I have a fairly simple layout with an image, and some textviews wrapped in

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.