Android Question Screen Drawing Problem

Robert Valentino

Well-Known Member
Licensed User
Longtime User
A user of mine purchased a
Samsung tablet model number SM-T530NU

Android OS: 5.0.2 API: 21

And says my software is having a screen drawing problem

He sent me a video which is too big to upload but here are 3 frames from it showing the problem

upload_2018-8-30_14-53-0.png


Left hand corner looks like it is not drawing properly but rest looks ok.
Then he clicks on button

upload_2018-8-30_14-53-58.png


And the screen turns to above while a new Activity is loading (cause by his click)

upload_2018-8-30_14-54-46.png


Then this screen seems to be perfect.


I have NO idea how to debug this or if this is even my problem.

I 130 users (I know wow what a lot) on a lot of different android / chromebook devices and not have reported this type of problem. I myself have 5 different Samsung devices and have never seen this.

ANY Help - Anyone

BobVal
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I am using Holo for everything

B4X:
SetApplicationAttribute(android:theme, "@style/HoloTheme")

CreateResource(values-v20, theme.xml,
<resources>
    <style
        name="HoloTheme" parent="@android:style/Theme.Holo">
    </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
    <style
        name="HoloTheme" parent="@android:style/Theme.Holo">
    </style>
</resources>
)

If I use any other Theme the FileDialog colors are never right.

I know there is a replacement but I don't like it.

I am working on my own replacement and didn't seem to have any problems until now

Hard to believe we can't use a common theme across all versions.
 
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Changed it yesterday:

B4X:
SetApplicationAttribute(android:theme, "@style/BBSTheme")

CreateResource(values-v20, theme.xml,
<resources>
    <style
        name="BBSTheme" parent="@android:style/Theme.Material">
    </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
    <style
        name="BBSTheme" parent="@android:style/Theme.Holo">
    </style>
</resources>
)


PS: Just heard from the user that this fixed the problem.

I don't know how you and my Wife handle being right all the time.
Must be such a burden LOL

Thanks BobVal
 
Upvote 0
Top