This is because, by default, TableRow aligns widgets on their text
baseline. It is more important to have the texts aligned than the
actual object boundaries. However, next SDKs have a different Spinner
with the same height as EditText.

On Fri, Apr 25, 2008 at 4:11 PM, kingkung <[EMAIL PROTECTED]> wrote:
>
>  I have a table layout and I'm programatically adding an EditText
>  object and a Spinner on one table row. Simple enough, right? You'd
>  think, since it's a TableROW, that the two objects would be level.
>  Instead, the Spinner is always slightly below the EditText object.
>
>  Is there a good way to fix this? I've tried setGravity(TOP) on the
>  Spinner, but that only moves the
>  text to the top edge of the Spinner. I can't manually adjust the
>  height of the Spinner because this is a TableRow, and for whatever
>  reason, setting LayoutParams on the Spinner gives me the "Invalid
>  LayoutParam error". Anyway, I shouldn't have to adjust the height: I
>  assume that there should be a simple way to keep the Spinner at the
>  same height as the Spinner...
>
>  James
>  >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to