H hayderOICO Member Licensed User Longtime User Sep 20, 2013 #1 Hi All A (probably) very simple question. I have a program with many tabs and slides. In the program there is a "panel" which contains an imageview and 4 buttons. This panel should be visible (and be identical) across all tabs and slides. What is the simplest and fastest way of displaying the same panel across multiple layout files?
Hi All A (probably) very simple question. I have a program with many tabs and slides. In the program there is a "panel" which contains an imageview and 4 buttons. This panel should be visible (and be identical) across all tabs and slides. What is the simplest and fastest way of displaying the same panel across multiple layout files?
Erel B4X founder Staff member Licensed User Longtime User Sep 20, 2013 #2 You should implement it in a class. You will then be able to add an instance of this class to each activity. Upvote 0
You should implement it in a class. You will then be able to add an instance of this class to each activity.
H hayderOICO Member Licensed User Longtime User Sep 22, 2013 #3 So I can display "Panel1" on multiple layout files? Or have to make a different named panel for each layout? Upvote 0
So I can display "Panel1" on multiple layout files? Or have to make a different named panel for each layout?
Erel B4X founder Staff member Licensed User Longtime User Sep 23, 2013 #4 You can use the same name. The global variable (Panel1) will reference the last view that was added with that name. Upvote 0
You can use the same name. The global variable (Panel1) will reference the last view that was added with that name.
H hayderOICO Member Licensed User Longtime User Sep 24, 2013 #5 Thanks Erel! will try that out. Upvote 0