MrKim Well-Known Member Licensed User Longtime User Aug 12, 2020 #1 I have found code to setPadding for B4A and B4i but I can't find anything on B4J. It would be nice to have one routine that could be called for all but if there is code for B4J that would begreat. Thanks.
I have found code to setPadding for B4A and B4i but I can't find anything on B4J. It would be nice to have one routine that could be called for all but if there is code for B4J that would begreat. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Aug 12, 2020 #2 Which type of view? Upvote 0
MrKim Well-Known Member Licensed User Longtime User Aug 12, 2020 #3 Erel said: Which type of view? Click to expand... Right now, just some labels. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 13, 2020 #4 You can add this to the Extra CSS field: B4X: -fx-padding: 5; Another option, which is simpler if you are building a cross platform solution, is to put the label inside a panel. Upvote 0
You can add this to the Extra CSS field: B4X: -fx-padding: 5; Another option, which is simpler if you are building a cross platform solution, is to put the label inside a panel.
MrKim Well-Known Member Licensed User Longtime User Aug 14, 2020 #5 Erel said: You can add this to the Extra CSS field: B4X: -fx-padding: 5; Another option, which is simpler if you are building a cross platform solution, is to put the label inside a panel. Click to expand... And make the label slightly smaller than the panel? Upvote 0
Erel said: You can add this to the Extra CSS field: B4X: -fx-padding: 5; Another option, which is simpler if you are building a cross platform solution, is to put the label inside a panel. Click to expand... And make the label slightly smaller than the panel?
Erel B4X founder Staff member Licensed User Longtime User Aug 14, 2020 #6 MrKim said: And make the label slightly smaller than the panel? Click to expand... Yes. Upvote 0
MrKim Well-Known Member Licensed User Longtime User Aug 14, 2020 #7 Erel said: Yes. Click to expand... Sigh, I have to get over this idea that adding additional views/panes/panels adds a lot of overhead and complexity Thank you Upvote 0
Erel said: Yes. Click to expand... Sigh, I have to get over this idea that adding additional views/panes/panels adds a lot of overhead and complexity Thank you
Erel B4X founder Staff member Licensed User Longtime User Aug 14, 2020 #8 MrKim said: Sigh, I have to get over this idea that adding additional views/panes/panels adds a lot of overhead and complexity Click to expand... That's true Only if you are adding more than 500 - 1000 views at once, then start thinking about the cost of such panels. Upvote 0
MrKim said: Sigh, I have to get over this idea that adding additional views/panes/panels adds a lot of overhead and complexity Click to expand... That's true Only if you are adding more than 500 - 1000 views at once, then start thinking about the cost of such panels.
Erel B4X founder Staff member Licensed User Longtime User Aug 14, 2020 #9 If we are talking about "layout performance" then check the Pleroma APK: https://www.b4x.com/android/forum/threads/b4x-b4xpages-pleroma-mastodon-client-step-1.119426/ (do note the warning about the content). It shows rich content, downloaded from a feed, made of hundreds of images, video players, gif viewers and a variant of BBCodeView. Upvote 0
If we are talking about "layout performance" then check the Pleroma APK: https://www.b4x.com/android/forum/threads/b4x-b4xpages-pleroma-mastodon-client-step-1.119426/ (do note the warning about the content). It shows rich content, downloaded from a feed, made of hundreds of images, video players, gif viewers and a variant of BBCodeView.