P priitp Member Licensed User Longtime User Feb 18, 2013 #1 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
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
P priitp Member Licensed User Longtime User Feb 18, 2013 #2 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
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
Erel B4X founder Staff member Licensed User Longtime User Feb 18, 2013 #3 You do not need this code. Setting the view top to 0 will put it below the action bar. Upvote 0
P priitp Member Licensed User Longtime User Feb 18, 2013 #4 Thanks Erel. Discovered it myself also. Something is probably wrong with my scrollposition calculations. Investigating.... Priit Upvote 0
Thanks Erel. Discovered it myself also. Something is probably wrong with my scrollposition calculations. Investigating.... Priit