The first question is about overflowing the stack, apologies if it is poorly formed.
I am developing a relatively sophisticated tabbed application and have already set up the basics before meeting the information that ActivityGroup and TabActivity are outdated, and the preferred model is using views.
I had no problems using views, this is a matter of architecture, not syntax (which is why I did not post any code). In particular, how do I need to restructure the application to use views instead of running Intent actions.
The application has five tabs; two have one layout, no problem. The remaining three tabs launch an ActivityGroup with 2-5 different actions (for example, a tab that performs an action for parameters, when each view is clicked, a new action starts that performs this specific setting, pressing the "Back" button returns you to wider functions / presentation of settings). If I were to store each Tab as a TabActivity, it would still be pretty easy to change these internal transitions to views, and not to individual actions.
The main question is to use ONLY views, there is no TabActivity / Activity group at all. The vast majority of my research is a discussion of whether to use "Actions" or "Views", or about the specific syntax. I could not put together a clear idea of how to MAKE a transition to representations throughout the application.
If I did this, would the entire application now be launched in one action - which is hosting the tabbed layout?
If (1) is true, how can this be done? Despite the fact that the ActivityGroup is out of date, all the documentation on Android still claims that it is preferable to use separate actions for certain aspects of the functionality, which makes sense. Did the Android development team simply decide that the cost of the stack and device made the TabActivity implementation inefficient?
If the application runs in one Office that manages different views for each tab (and then different views INTERACT the tab when necessary), should I have one huge onClick method to handle all clicks from any interactive view, processing input based on which species is active? Or should I register and cancel all my listeners programmatically?
When using one action, will not any click listener or any broadcast receiver work all the time, consuming resources even if necessary?
With one action, the Back button will exit the entire application from anywhere in its functionality. If I use views, will I consistently override onBackPressed () and carefully control the application to make it behave "like an Android application?"
I THINKING ABOUT THIS TOTALLY WRONG? Perhaps I'm inadvertently trying to recreate the functionality of ActivityGroup and TabActivity using views instead, when I have to use a completely different approach to using tabs and views.
When people at Google say that we should no longer use actions as tabs, and Mr. Mark Murphy so categorically agrees, I tend to believe. I simply could not investigate the switching method without resorting to re-typing many of the activity functions manually (which would probably include a lot of dirty hacks).
Thanks in advance for anyone who wants to tackle such a vague and rewritten topic.
HeMightBeTodd
source share