My question sounds simple, but I cannot find a sufficient answer for this.
I am trying to create an application for tablets that have some information in the upper quarter of the screen, and then a tabbed menu for information below the upper quarter.
I am mainly looking for:
ββββββββββββββββββββββββββββββββββββββ β β Top of Page β βββββββββ¬ββββββββ¬ββββββββ¬ββββββββ¬βββββ β Tab 1 β Tab 2 β Tab 3 β Tab 4 β β βββββββββ΄ββββββββ΄ββββββββ΄βββββ β β Bottom of page β β β β
I originally intended to use tabhost with multiple tabs; but I understand that it is out of date now, so I'm looking for the most efficient and modern way to do this for Android development. The easiest way that has already been implemented is the action bar, but at the top of the application - and this is not quite what I also want to go to.
I read in another thread that fragments should be used instead; but given the simplicity of tabhosts, I donβt quite understand how a fragment can replace this because, as far as I can tell, it does not have a built-in tab option; only lists. (Of course, I could be wrong)
Other options I found are ActionbarSherlock and just buttons that change layouts.
I assume that overall what I am asking is the best, most modern way of backward compatibility with the reproduction of the design that I have there?
EDIT: So far, the only thing I've found from the study still states that I'm using fragments with the compatibility API or just using the buttons and FrameLayout. I'm really not interested in using the action bar, since it does not go below the layout, which should be on top.
Or would it be really bad if you just go ahead and use TabHost anyway, although it's deprecated?