Android Question B4XTable pnlTitle.Visible pnlHeader.Visible can't set to False

VArt

Member
In example "Cross platform Editable B4XTable + Form"
add only one line

B4X:
Private Sub B4XPage_Created (Root1 As B4XView)


'original example code


B4XTable1.pnlHeader.Visible=False  'my line

End Sub


Get error: "java.lang.RuntimeException: Object should first be initialized (B4XView)."

What way to hide navigation panel?

Need this, because my table is short, have fixed numbers of rows & columns and always visible. Therefore, navigation - not needed.
 

VArt

Member
Thanks, Erel!

It works!


Problem solved :)

but...

table not shift to up, i have top empty space.

I'm trying to do this:

(BT - B4XTable)

BT.mBase.GetView(1).Top=0 'panel of table
BT.mBase.Height=BT.mBase.Height - BT.mBase.GetView(0).Height ' minus height of hided Header


Visual result is ok!
This is correct way?
Or may be exist more simple solution to shift up or redraw after hiding of header?
 
Upvote 0
Top