1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Using JavaObject or Reflector to get height of TabStripViewPager ?

Discussion in 'Android Questions' started by Martin D., Jul 17, 2019.

  1. Martin D.

    Martin D. Member Licensed User

    Hi,

    TabStripViewPager exposes very few attributes and I'm trying to get the height of the whole TabStrip.

    I have not been able to obtain this value using code such as :

    Dim r As Reflector
    r.Target = tabStrip
    Dim tabStripHeight As Int = r.RunMethod("getMeasuredHeight")

    However I know it's in there, using "Watch" panel : TabStrip.target.base.mMeasuredHeight.

    How can I access this value ?

    Thanks a lot.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.

    Are you looking for the height of the full control? You can put it in a panel and get the panel size.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice