Android vs Views Actions

Sorry, I know this topic has been addressed a bit. I read the relevant posts and I'm still a little confused. I am working on an application that, although the prototype will have 3 main screens, it will eventually have dozens. On each screen, either a dynamically changing status or user input will be displayed. To visualize, it is required that it be laid out in the same way as MS Word or a regular PC. It has a status bar at the top and a navigation bar at the bottom, which is common for all screens (small settings for some screens, for example different icons) in the middle, I would call the view panel, which should be updated using the applicable layout.

The status, navigation bar and each screen are defined in the layout's own XML file. For my first purchase, I just used ViewFlipper and loaded 3 screen layouts into it. However, this means that I currently have one main action that will not be supported as I continue to add screens.

  • It seems to me that each screen layout should have an Activity class associated with it that understands how to manage this screen. I need to figure out how to dynamically load this into the central panel. However, I thought I read in another post that using multiple actions could be a CPU and RAM leak.
  • Currently, I tried to make one of the screens on which he owns the Activity, and to drop it from the main activity, creating an Intent and calling startActivity. However, this causes the new on-screen Activity to be on top of the main activity. Interestingly, then pressing the back button rejected this activity and returned me to the main one.
  • So far I have not figured out how to set up another Activity control, which is happening in the central panel.
  • If I continue with several activity paths, should my main Activity inherit from an ActivityGroup?
  • Do view classes use more applicable ones in this case?

I know this was a long post. I would be grateful for any advice. Thank you CB

+5
source share
3 answers

, Android , "" , . , "", , .

ActivityGroup, . , nav/status. , . a LayoutInflater ( getLayoutInflater()), , .

, , ViewFlipper . , , , ""; , , . ( "", , , , Android , .)

+3

, , . , , . , - ActivityGroup, , .

+1

, , . , . , , , , , .

+1
source

All Articles