try "setPressed(false); setEnabled(false);"

On Jun 2, 9:02 am, Keith Wiley <[email protected]> wrote:
> There is no setVisible(boolean) function.  I presume you mean
> setVisibility(), which doesn't take a boolean, but rather takes one of
> three enums, but they are radically different from a dimmed disabled
> widget.  The options are VISIBLE, INVISIBLE, and GONE, none of which
> are dim.  I've had some problems with visibility too recently, but I'm
> trying to confine this thread to the OP's topic, which is dimming
> disabled widgets.
>
> I'm surprised other people aren't piping in on this.  No one else is
> having this problem?
>
> On Jun 1, 5:12 pm, Christine <[email protected]> wrote:
>
>
>
> > try "setVisible(false)". That dims it a lot.
>
> > On Jun 1, 4:46 pm, Keith Wiley <[email protected]> wrote:
>
> > > I'm having the exact same problem.  I call setEnabled(false) on a View
> > > (spinner in my case).  The command works in that the spinner is not
> > > longer active (tapping it doesn't bring up a contextual menu), but its
> > > appearance hasn't changed, it hasn't been dimmed.  I am defining a
> > > very ordinary Spinner, ala:
>
> > > <Spinner
> > >         android:id="@+id/spinnerName"
> > >         android:layout_width="175dp" android:layout_height="wrap_content"
> > >         android:layout_gravity="right|center_vertical"
> > >         android:layout_weight="0"
> > >         android:drawSelectorOnTop="true" />
>
> > > I see a few questions like this on the list, bu no answers.  Does
> > > anyone know what's going on and how to fix it?
>
> > > Thanks.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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