T Tommaso Member Licensed User Longtime User Jul 1, 2019 #1 Hi Everyone! I've a problem with spinner content as you can see label was drawed bad. 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
Hi Everyone! I've a problem with spinner content as you can see label was drawed bad. 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
R rboeck Well-Known Member Licensed User Longtime User Jul 1, 2019 #2 I have the same problem, but only on huawei devices; i use a custom backcolor and on huawei devices the backcolor is not the whole width of the spinner, but only on the background of the text. I tried it with different styles, but could not solve the problem completly. See here: https://www.b4x.com/android/forum/threads/spinner-background-color-on-huawei.100297/#post-630624 regards Reinhard Upvote 0
I have the same problem, but only on huawei devices; i use a custom backcolor and on huawei devices the backcolor is not the whole width of the spinner, but only on the background of the text. I tried it with different styles, but could not solve the problem completly. See here: https://www.b4x.com/android/forum/threads/spinner-background-color-on-huawei.100297/#post-630624 regards Reinhard
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2019 #3 Can you upload a small project that demonstrates it? Upvote 0
T Tommaso Member Licensed User Longtime User Jul 2, 2019 #4 Erel said: Can you upload a small project that demonstrates it? Click to expand... 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 ProvaProblemaSpinnerHuawei.zip 419.1 KB · Views: 585 Upvote 0
Erel said: Can you upload a small project that demonstrates it? Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Jul 3, 2019 #5 Please use File - Export as zip when uploading projects. Don't change the activity color. Change the theme in the manifest editor: Code: CreateResourceFromFile(Macro, Themes.LightTheme) Complete code: Code: 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
Please use File - Export as zip when uploading projects. Don't change the activity color. Change the theme in the manifest editor: Code: CreateResourceFromFile(Macro, Themes.LightTheme) Complete code: Code: 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
T Tommaso Member Licensed User Longtime User Jul 3, 2019 #6 Ok Grazie Attachments ProvaProblemaSpinnerHuawei.zip ProvaProblemaSpinnerHuawei.zip 9 KB · Views: 565 Upvote 0