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
 
Not sure if it is correct way but got something.

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

Priit
 
Upvote 0
Thanks Erel.
Discovered it myself also.

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

Priit
 
Upvote 0

Similar Threads

Back
Top