I created a project with three Activity Module, use a panel.LoadLayout to fill each of the three layouts, the problem is that when I display the Layout "1" and the Layout "2" events of the buttons do not work.
I tried calling but the menu CallSubDelayed created in the "main" is you can not see
You need to tell us what you really want to do.
I'm afraid that your mixing up several things.
You say you want to use three activities, but in your code you never call one of the two other activities.
But you use two Panels in the Main module to display the two other layouts.
These are two different approche.
What do you want to do with the Buttons ?
You have three layouts and in each one you have a Button1 buttons.
As you load the main layout and the one of the two others you have two buttons with the same name ?
Before going deeper into the code you must explain exactly what you want to do.
What I do is a sliding menu similar to Gmail, the idea is to create a layout template that contains the slide menu and depending on the selected menu item the other two Layouts and their respective Layouts Activity Module is loaded.
Here you are.
As I still don't know what you really want I added two projects.
- aaaActivities with three activities.
- aaaPanels with one activity and three panels.
That way you'll see the difference between the two approches.
Be aware that with three activities the ActionBar is active only on the first one.
I wanted to try the above two projects, but I got the following error message :
What should I do to solve the problem ? I downloaded the ahaActionBar.zip, but where should I unzip it ? Where should be its two components ?
Regards,
JPP
You should unzip the library files and copy the *.jar and *.xml to the additional libraries folder like with any other library.
Details in chapter 14.7 Libraries in the Beginner's Guide.