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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:23:11+00:00 2026-06-01T18:23:11+00:00

I am comparing a ListView containing TextView items under Android Gingerbread (2.3.1) and ICS

  • 0

I am comparing a ListView containing TextView items under Android Gingerbread (2.3.1) and ICS (4.0.3).

Using the Hierarchy View, I see that, for the same contents, the getBaseline() property is different in these 2 versions of Android.

Under Gingerbread, property getBaseline() is 23 for all items.
Under ICS, property getBaseline() is 58 for some items, 23 otherwise.
And the items with baseline 58 are invisible (the text content is there, just out of sight).

Do you know of anything that could have had modified the baseline ?
I believe I’ll need to fix this to make the text visible.
My code does some styling of the items, based on content, but I do not consciously manipulate the baseline.

  • 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-01T18:23:13+00:00Added an answer on June 1, 2026 at 6:23 pm

    The problem was solved by changing the xml item template.
    I did some testing with a simpler layout (the RelativeLayout in http://www.curious-creature.org/2009/02/22/android-layout-tricks-1 ). It worked.

    When I reverted back to the original (non functional) xml it also worked… Strange.
    Anyway, the lesson is: don’t forget to check the xml.

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

Sidebar

Related Questions

Comparing two images to see if they are both the same files is easy:
Comparing two sql values that are almost the same. I know this is simple
I've got two competing problems. Situation Got a Massive Listview 10k+ items that I'm
I am using a generic ListView sorter implementing the IComparer interface. Is this working
Comparing two codes below,both do the same,but with slighty differences: ALTER procedure [dbo].[SP_USUARIOS_UPDATE] @usu_ds
Possible Duplicate: Comparing Two Arrays Using Perl How can I print values which exist
Overview: I have an Expandable List View which displays items of the type ToDoElement
When comparing enums that come from different sources such as those of the following
Are there techniques for comparing the same data stored in different schemas? The situation
when comparing string to see if it is empty, is there any difference between:

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.