Android Question clsActionBar has UI differences with different versions Android

sdixon

Member
Licensed User
Longtime User
Don't know if this has been asked before, but if it has I couldn't find it.

I'm using clsActionBar in some of my projects but there is an annoying UI problem that I haven't been able to fix.

On my tablet with Android 4.2.2 the bar is displayed with a grey separator which covers the top 25% of the action bar.

On my and my wife's (yes I use hers to test) phone, Android 6.01 and 5.1 respectively, the ActionBar is shown as I would like it to be shown, without the grey separator.

Has anyone else had this come up and if so, how did you remove the grey bar?

Thanks in advance.

tablet_clsactionbar.png
phone_clsactionbar.png
 

sdixon

Member
Licensed User
Longtime User
After three days of searching, it seems that the problem is too simple not to share.

This gives the grey bar at the top of the action bar

B4X:
AB.Initialize(Activity, True, False, 20, Me)       'initialize the action bar at top of activity

By changing the Dark theme as Boolean to True the grey bar at the top of the action bar is the same color as the rest of the action bar

B4X:
AB.Initialize(Activity, True, True, 20, Me)        'initialize the action bar at top of activity

Certainly not an optimal solution, but at least on most devices
with a dark theme running Android 4.2.2 the grey bar is hidden.
 
Upvote 0
Top