Android Question three Activity Module

angel

Member
Licensed User
Hello

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

Thank you.
 

Attachments

Beja

Expert
Licensed User
Hi,
Did you create 3 activity modules or one activity and 3 layouts?
sorry I am away from my b4a computer.
 

klaus

Expert
Licensed User
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.
 

angel

Member
Licensed User
Hello

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.

I climb the Seller ahaActionBar

Thank you.
 

Attachments

klaus

Expert
Licensed User
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.
 

Attachments

JPP

Member
Licensed User
Hi !

I wanted to try the above two projects, but I got the following error message :

upload_2015-5-4_22-50-58.png


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
 

klaus

Expert
Licensed User
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.
 
Top