ActionBar height

priitp

Member
Licensed User
Longtime User
Hi

How to get an ActionBar height?
I have a scrollbar filling full activity.
When positioning my scrollbar it seems the position starts at top of screen and so the upper part is behind the ActionBar.

Trying to use reflector first time but haven't succeeded so far.
The Android reference is here:

Thanks
Priit
 

priitp

Member
Licensed User
Longtime User
Not sure if it is correct way but got something.

B4X:
Dim ref As Reflector
   ref.Target = ref.GetActivity
   ref.Target = ref.RunMethod("getActionBar")
   Dim ActionbarHeight As Int = ref.RunMethod("getHeight")

Priit
 
Upvote 0

priitp

Member
Licensed User
Longtime User
Thanks Erel.
Discovered it myself also.

Something is probably wrong with my scrollposition calculations.
Investigating....

Priit
 
Upvote 0
Top