Android Question three Activity Module

angel

Member
Licensed User
Longtime 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

  • aaa.zip
    34.8 KB · Views: 222

Beja

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

klaus

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

angel

Member
Licensed User
Longtime 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

  • ahaActionBar.zip
    23.4 KB · Views: 227
Upvote 0

klaus

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

  • aaaActivities.zip
    20.6 KB · Views: 262
  • aaaPanels.zip
    20.9 KB · Views: 236
Upvote 0

JPP

Member
Licensed User
Longtime 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
 
Upvote 0
Top