Home Forum
Welcome, Guest
Username Password: Remember me

Very specific Android Layout bug?
(1 viewing) (1) Guest
Discussion related to creating Android software
  • Page:
  • 1

TOPIC: Very specific Android Layout bug?

Very specific Android Layout bug? 2 years, 9 months ago #172

This took a while to diagnose and even longer to find a solution so its worth jotting down.

There seems to be a bug (or oddity) that results in a stack overflow, I guess it is something to do with circular measurement, here is how I got it

The home screen on application has a table row that contains an image, and two text items, this row is one of two rows in a single column table layout, this in turn is the child of a linear layout, in a linear layout in a scroll view, all this is an activity within a Tabbed Activity.

The odd thing is that this error only happens when the activity is displaying an title.

It happens then the text wraps to the next line in the second text item in the innermost item, allow the line to be truncated by not setting the shrinkColumn property in the table layout and the error does not occur.

The solution to this was to replace the Table layout with a linear layout.

Glad I got that off my chest.

But anybody make sense of this or have the same issue?
  • marvin
  • OFFLINE
  • Professor
  • Posts: 18
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.15 seconds
Copyright © 2012 Android Academy. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
 
Glossary
We have 25 guests online