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
 
SOLVED. I share my code. Please improve if necessary.

B4X: Copy
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

Similar Threads

  • Question Question
Android Question Fix TabStrip tabs
Replies
1
Views
2K
Replies
5
Views
5K
Replies
8
Views
8K
Replies
196
Views
181K
Back
Top