Saturday, November 5, 2011

[android-developers] Re: Layout for zero-length strings in TextView

I remember noting this as a difference in Honeycomb compared to old
Android versions. You might want to try in a Honeycomb (and even ICS)
emulator as a reference. And I would love for a Google Android
engineer to chime in as to why the behavior or TextView changed --
this is not an insignificant change.

Doug

On Nov 4, 8:32 am, RLScott <fixthatpi...@yahoo.com> wrote:
> The app is compiled
> use API 8 for Android 2.2.  But on a Acer A100 tablet running Android
> 3.2, this is not what happens.  Instead a TextView with a zero-length
> text takes up no room at all and the second TextView slides up to
> where the first TextView would have been.  I know I could probably fix
> the problem by setText(" ") instead of setText(""), but there are
> various reasons in my app that would make that a messy solution.  Can
> anyone confirm or explain this layout behavior?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment