Android Question TabStrip Dimensions at runtime

advansis

Active Member
Licensed User
Longtime User
Hi guys,
I need to change TabStripPager dimensions at runtime. I dind't find any way to do it, I suppose I must use reflection (as in GetAllTabLabels, etc.) but don't know what properties and what object to use.
PS. Is there any method in javaobjects/reflection to LIST ALL properties/methods?
Thanks in advance
 

advansis

Active Member
Licensed User
Longtime User
SOLVED. I share my code. Please improve if necessary.

B4X:
public Sub TabStrip_SetLayout(ts As TabStrip,Left As Int,Top As Int,Width As Int,Height As Int)
    Dim jo As JavaObject = ts
    Dim P As Panel=jo.GetFieldJO("vp")
    P=P.parent
    P.SetLayout(Left,Top,Width,Height)
    TabStrip_Refresh(ts)
End Sub
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…