B4A Library [Class] Panels Stack

Hi all,

I'm new on Android programming, I thinking to develop DB applications and in my mind the user need a Stack of "forms" to maintain data.

The Erel's two activities example show how to communicate between Activities, but I needed a more abstract solution.

So I wrote this class which implement a Stack of Panels on top of an Activity. I'm not sure of all implications, I think I have to deal with Activity recreation maybe I can't prevent rotation, or save the state of the stack, but at the moment it isn't a problem.

Regards
 

Attachments

  • PanelStack.zip
    9.8 KB · Views: 332

claudio

Member
Licensed User
Longtime User
What is that class supposed to do ?
Just creating panels ?
Could you explain "the user need a Stack of "forms" to maintain data" ?

In DB application scenario the user launch a query, form the list of resulting records he can call a record for editing or add new ones, from the editing he can lookup to records of related tables and so on, at each step he add a panel then the values of panel can be confirmed or escaped in both cases the panel is removed from the stack.

The behaviour is similar to web pages navigation where each link open a new page and the back button return to the previous.

Claudio
 

Informatix

Expert
Licensed User
Longtime User
In DB application scenario the user launch a query, form the list of resulting records he can call a record for editing or add new ones, from the editing he can lookup to records of related tables and so on, at each step he add a panel then the values of panel can be confirmed or escaped in both cases the panel is removed from the stack.

The behaviour is similar to web pages navigation where each link open a new page and the back button return to the previous.

Ok, I see. That let me think that my new class FloatingWindow could be helpful in your project. It's also a kind of panels stack.
 
Top