Hi again,

I am using a custom theme for my entire application through the
android:theme xml attribute in the Manifest file:

<application android:theme="@style/CustomActivityTheme" ...>

But it has very minimal content and does not include the button styles
-- these are set manually when needed. Here is the content of the
themes.xml file which defines the relevant minimal theme:

<resources>
    <style name="CustomActivityTheme" parent="@android:style/
Theme.NoTitleBar">
        <item name="android:windowNoTitle">true</item>
    </style>
</resources>

Could this have any effect on spinners?

/Michael.

On Jan 17, 7:32 pm, Kostya Vasilyev <[email protected]> wrote:
> Hi,
>
> Are you using a custom theme for your entire application's activities to
> customize buttons? Are you using a theme at all?
>
> 2011/1/17 michael <[email protected]>
>
>
>
> > Hi again,
>
> > Thanks for your suggestion Kostya. But my spinner does not use any
> > custom styling whatsoever. It is shown in a dialog which is built
> > using AlertBuilder. The only custom styling in the app is for buttons,
> > which I don't think should have any effect on spinners.
>
> > Any other ideas?
>
> > Incidentally, about 6% of the sessions in my app come from Droid X
> > users, so I would be surprised if they all experienced this problem (I
> > have only received this complaint from a single user).
>
> > Cheers,
> > Michael.
>
> > On Jan 17, 7:07 pm, Kostya Vasilyev <[email protected]> wrote:
> > > I don't have one either, but I've seen screenshots of my program on that
> > > device, done by someone for a review.
>
> > > See the top-left corner of the screenshot in section 8:
>
> > >http://www.simplehelp.net/2010/11/30/how-to-manage-your-android-wifi-...
>
> > > The spinners in that screenshot use my own backgrounds, which are light,
> > and
> > > work with the default text color from Theme.Light, which is dark. But on
> > the
> > > X, the text color is light - I guess their customized spinner backgrounds
> > > are dark.
>
> > > What I'm getting at is - does your spinner use any kind of custom (=
> > > supplied in your application) drawable, layout, or color?
>
> > > -- Kostya
>
> > > 2011/1/17 michael <[email protected]>
>
> > > > Hi Kumar and Kostya, thanks for your quick replies.
>
> > > > Kumar, I did wonder if text colour could be an issue, but surely the
> > > > standard styling should work consistently throughout all devices and
> > > > OS versions, right? Note that I have not set a custom text colour.
>
> > > > Kostya, this is indeed on Droid X -- do you have any insights for
> > > > that? I don't know which Android OS version (the user has not replied
> > > > to my requests for this info). I also don't have a Droid X available
> > > > so can't reproduce.
>
> > > > Best,
> > > > Michael.
>
> > > > On Jan 17, 6:41 pm, Kostya Vasilyev <[email protected]> wrote:
> > > > > Is this on the Droid X ?
>
> > > > > 2011/1/17 Kumar Bibek <[email protected]>
>
> > > > > > Well, it's just a problem of wrong text color on a custom UI from
> > the
> > > > > > manufacturer. Ask the user for the model of his phone and the OS
> > > > version. I
> > > > > > am sure, you can reproduce the problem on a similar device.
>
> > > > > > Say, for example, your spinner items text color is black, which you
> > > > have
> > > > > > mentioned, and the default spinner layout that the custom UI uses
> > has a
> > > > > > black background, do you see the problem?
>
> > > > > > Kumar Bibek
> > > > > >http://techdroid.kbeanie.com
> > > > > >http://www.kbeanie.com
>
> > > > > > On Mon, Jan 17, 2011 at 11:50 PM, michael <
> > > > > > [email protected]> wrote:
>
> > > > > >> Hello,
>
> > > > > >> One of my users has reported a mysterious behaviour with a spinner
> > > > > >> which I so far have been unable to reproduce. When pressing the
> > > > > >> spinner, a list of blank (empty) items appears. Only when
> > selecting an
> > > > > >> item does the spinner display the relevant text associated with
> > the
> > > > > >> item. The number of blank lines correctly corresponds to the
> > expected
> > > > > >> number of items in the spinner.
>
> > > > > >> Here is the code I use for populating the spinner, which is
> > executed
> > > > > >> in the onPostExecute method of an AsyncTask:
>
> > > > > >> String[] spinnerArray = new String[]{...}; // array contents
> > omitted.
> > > > > >> ArrayAdapter<String> adapter = new ArrayAdapter<String>(ctx,
> > > > > >> android.R.layout.simple_spinner_item, spinnerArray);
> > > > > >> spinner.setAdapter(adapter);
> > > > > >> spinner.setSelection(0);
>
> > > > > >> This is pretty standard as far as I can tell.
>
> > > > > >> Has anybody encountered behaviour similar to what is described
> > above?
> > > > > >> Any idea what might be going wrong?
>
> > > > > >> Any suggestions would be greatly appreciated.
>
> > > > > >> Best,
> > > > > >> Michael.
>
> > > > > >> --
> > > > > >> 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]<android-developers%2Bunsubs
> > > > > >>  [email protected]><android-developers%2Bunsubs
> > [email protected]><android-developers%2Bunsubs
> > > > [email protected]>
> > > > > >> For more options, visit this group at
> > > > > >>http://groups.google.com/group/android-developers?hl=en
>
> > > > > > --
> > > > > > 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]<android-developers%2Bunsubs
> > > > > >  [email protected]><android-developers%2Bunsubs
> > [email protected]><android-developers%2Bunsubs
> > > > [email protected]>
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > 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]<android-developers%2Bunsubs
> > > >  [email protected]><android-developers%2Bunsubs
> > [email protected]>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > 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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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