tags:

views:

34

answers:

0

I would like to build an application, consisting of:

  • four main menus - 4 buttons at the bottom panel act as "tabs"
  • some child activities - like search result screen - a list view
  • login screen

The problem is, that I am not really sure, how to design the backend. At the moment, I use ViewFlipper. The main layout file includes others as a separate view. In the main activity tab buttons are set.

Each view has a corresponding "manager", what is a class acting very similar to activity. It handles initialisation of a particular view. The problem is, that the code is getting messy and I think it's not flexible. Also, these managers require passing contexts all around to get access to UI elements.

Enough talking - could anyone provide some android suggested architecture? I look forward to some nice examples from more experienced people.