Android Question Spinner Drawing Content

Tommaso

Member
Licensed User
Longtime User
Hi Everyone!
I've a problem with spinner content as you can see label was drawed bad.
combolist-png.73098

The items/label are sized based on text content, the problem is that doesn't manage click (on black portion).


Doesn't work for example on Huawei MediaPad T5 Android 8.0
Someone have any suggestion

Thanks in advance
regards
 

Tommaso

Member
Licensed User
Longtime User
Can you upload a small project that demonstrates it?
Hi Erel,
sure, attached here a sample.
I've verified this problem with Huawei MediaPad T5 Android 8.0 with other device it works fine.

Thanks in advance
 

Attachments

  • ProvaProblemaSpinnerHuawei.zip
    419.1 KB · Views: 330
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please use File - Export as zip when uploading projects.

Don't change the activity color. Change the theme in the manifest editor:
B4X:
CreateResourceFromFile(Macro, Themes.LightTheme)

Complete code:
B4X:
Activity.LoadLayout("Layout1")
Spinner1.AddAll( Array As String("Ok", "Le voci piu corte", "Su device Huawei", "Non prendono il click","Se non dove ho del testo", "Prova a premere la voce ok ma sulla destra"))
Spinner1.TextSize = 15
 
Upvote 0
Top