ok. it turns out that the real problem was TableRow.LayoutParams(2,
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT). i changed it to
TableRow.LayoutParams(2) and it works as expected.

thanks again.

On May 13, 11:10 pm, Romain Guy <[email protected]> wrote:
> Oops my bad, you were talking about *Spinner*. Spinner does NOT
> support android:drawSelectorOnTop, so there's no equivalent Java API.
> Setting this attribute in XML has absolutely no effect (in particular
> because a Spinner does not have a selector.)
>
>
>
> On Wed, May 13, 2009 at 7:59 PM, damnesia <[email protected]> wrote:
>
> > Yeah, I saw it in the documentation online but when I do
> > spinner.setDrawSelectorOnTop(true); I get "The method
> > setDrawSelectorOnTop(boolean) is undefined for the type Spinner".
>
> > I am using Android android-sdk-linux_x86-1.1_r1. Do I need to upgrade?
>
> > Thank you for your time.
>
> > On May 13, 2:59 pm, Romain Guy <[email protected]> wrote:
> >> It's in the documentation :) Hint, look for setDrawSelectorOnTop(boolean).
>
> >> On Wed, May 13, 2009 at 2:53 PM, damnesia <[email protected]> 
> >> wrote:
>
> >> > Is it possible to dynamically set the drawSelectorOnTop attribute on a
> >> > Spinner instead of having to do it in the layout XML?
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> [email protected]
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to