Wish background Color in Spinner always white?

Ulrich

Member
Licensed User
Longtime User
Hello together,
I am new on this forum, in the job working with ABAP, the programming language of SAP. How simple all could be using B4A ;-)

My question:

I have a Spinner with a GradientDrawing from LightGray to Darkgray and TextColor White.
(The same like all the Buttons on the Activity)
Looks very fine. But openig the spinner, to choose an Item, I see White Text on white Background.
It seems to me that there is no way to set the background color of the spinner item list?

Thanks in advance + regards Ulrich
 

Azhar

Active Member
Licensed User
Longtime User
Hello together,
I am new on this forum, in the job working with ABAP, the programming language of SAP. How simple all could be using B4A ;-)

My question:

I have a Spinner with a GradientDrawing from LightGray to Darkgray and TextColor White.
(The same like all the Buttons on the Activity)
Looks very fine. But openig the spinner, to choose an Item, I see White Text on white Background.
It seems to me that there is no way to set the background color of the spinner item list?

Thanks in advance + regards Ulrich

Hello, I too am having the same problem. Also, if the spinners are a nice charcoal grey background colour (by default) on one phone using Android 2.2.2, if I install the application on another phone (Hauwei running 2.2.2) the spinners are a completely different colour and again I cannot see any text in the selection pop up frame. I've set the text colour of the spinner to ActiveCaption and that's just about visible on the spinner control and it's popup selection box.
How can we get consistency of colours across different devices?

Many thanks,

Azhar
 

Azhar

Active Member
Licensed User
Longtime User
I have read on the Core Library that:

Setting the color to transparent will make the spinner use the default text color

This gives a clear (white like) spinner text on the dark spinner control and the popup window options text is black.

I've yet to test on the other phone, looks good on my Defy though.

Azhar
 

Ulrich

Member
Licensed User
Longtime User
Dialog Background Color in Spinner stays White

Hi Azar,
tanks for Your quick replay. But unfortunately on my ZT ICS on Android 4.0.3 the Dialog Background Color of the Spinner stays allways White. Whatever I do. Tried this with A = 0, no effect..
Can't get a consistent, unique layout with a spinner...
Regards Ulrich
 

Ulrich

Member
Licensed User
Longtime User
Spinner Item List always white

Hi Erel,
what a pity! Because it took me only 2 weeks, to get the functions of my app runnig under B4A. And I am very pleased. Now, when tuning the layout, comes this spinner problem. (In Anroid SDK this is not very simple, too).
Do You have any suggestions? Work arounds? May be a lib with a Custom Spinner ? Regards Ulrich
 

jatko

Member
Licensed User
Longtime User
Is there now any new possibibility to change the the dropdown list background color in spinner? I mean 2.71 version.
 

HotShoe

Well-Known Member
Licensed User
Longtime User
Is there now any new possibibility to change the the dropdown list background color in spinner? I mean 2.71 version.

You might look at my combobox library here. It may do what you are looking for.

--- Jem
 

coco

New Member
Licensed User
Longtime User
Hello together,
I am new on this forum, in the job working with ABAP, the programming language of SAP. How simple all could be using B4A ;-)

My question:

I have a Spinner with a GradientDrawing from LightGray to Darkgray and TextColor White.
(The same like all the Buttons on the Activity)
Looks very fine. But openig the spinner, to choose an Item, I see White Text on white Background.
It seems to me that there is no way to set the background color of the spinner item list?

Thanks in advance + regards Ulrich
Hi Ulrich , Can you please post a simple example of app linked with your SAP landscape ? I am also very interested in B4A and ABAP ...unfortunately i am not mastering yet none of these . :) Thank you
 
Top