iOS Question ExpandableTableView (tree view) question

tufanv

Expert
Licensed User
Longtime User
Hello,

1)How can i change the textsize of items of an expandable tableview ?
2) How can i change the expandall and collapseall texts . I cant find any place to change the text.

TY
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. Add these lines to CreateInternalCells:
B4X:
Dim s As AttributedString
s.Initialize(c.Text, Font.CreateNew(20), Colors.Black)
tc.Text = s

2.
SS-2016-04-07_09.28.45.png


Change the Text property, not the Tag.
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
1. Add these lines to CreateInternalCells:
B4X:
Dim s As AttributedString
s.Initialize(c.Text, Font.CreateNew(20), Colors.Black)
tc.Text = s

2.
SS-2016-04-07_09.28.45.png


Change the Text property, not the Tag.

I dont have the etv in designer i added it using itableview2 library and the etv module in your tutorial. I cant find etv in designer with iui8 or itableview2 ?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
also for the etv_SelectedChanged(cell As CustomCell) event

how can i determine if the item does not have a child so i can open the prodcut information panel. ?

( I mean , if it has a child it must not open the product page because it means it is not a product but a category , but if it does not have a child it means its the product so i can open the product page)
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I dont have the etv in designer i added it using itableview2 library and the etv module in your tutorial. I cant find etv in designer with iui8 or itableview2 ?
Are you asking about the two toolbar buttons? They belong to the main page properties.

how can i determine if the item does not have a child so i can open the prodcut information panel. ?
Check the size of cell.Children.
 
Upvote 0
Top