Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split the screen on android tablet

I've seen several tablet apps that split the screen into two parts. Usually a menu and and a main window. I tried to google something about it, but couldn't find anything. Is there an out of the box solution for this, or do I have build it on my own?

like image 888
Andrzej Gis Avatar asked May 19 '12 21:05

Andrzej Gis


2 Answers

Check out the article on multi-pane layouts on the Android Design site. It should help clarify the idea behind it.

As for actually implementing them, you'll have to use Fragments. Here are a couple tutorials to get you started.

like image 111
Alex Lockwood Avatar answered Sep 28 '22 07:09

Alex Lockwood


The sdk code samples are most likely already on your computer, and can be accessed through the "new Android project..." wizard of Eclipse.

Or if you own an Honeycomb tablet and just want to play around with the ApiDemos samples without looking at the code, you can just search for ApiDemos in the Google Play Store and download the one ApiDemos project that has four to five stars next to it.

On the tablet itself, many of the ApiDemos will be double-listed, but that's because the first one is usually the pre-honeycomb version and the second one is the post-honeycomb version.

like image 41
Stephan Branczyk Avatar answered Sep 28 '22 07:09

Stephan Branczyk