1

I am just starting out with Android and I am struggling to familiarize myself with the the views available.

I am working on an app for a tablet where I would ideally have a "split screen", with the left-hand side essentially being a vertical list of items. On selecting an item from the left-hand pane the right hand pane would show details of the thing selected. ( I guess this would be like the email app UI ).

I could build this interface in C# or a web based system - where would you begin on an Android system

BENBUN Coder
  • 4,801
  • 7
  • 52
  • 89

4 Answers4

0

A vertical list of items would be a ListView for which you could set an onListItemSelected listener. That listener would modify the contents of whatever you decide to put into the right side.

Jason L
  • 1,812
  • 2
  • 22
  • 43
0

I would begin with a horizontal linear layout.

From there, implement vertical linear layouts, listLayouts, etc... on each the left and right sides. For these secondary tiered layouts, give them widths in 50% weights so that each side takes up half of your screen!

A link that speaks about setting linear layouts in terms of weights and how to do it!

Linear Layout and weight in Android

Community
  • 1
  • 1
trumpetlicks
  • 7,033
  • 2
  • 19
  • 33
0

You should look at using fragments, but as far as familiarizing yourself with views available, take a look at the Android Design Site, specifically the Building Blocks section. It shows you a bunch of different UI patterns to use which you can build from included views.

kabuko
  • 36,028
  • 10
  • 80
  • 93
0

I believe this is exactly what you need.

The great thing about it that if you switch to portrait mode you'll have each "pane" on a separate Activity (or screen).

If you need to implement it for pre 3.0 check you the compatibility library (v4).

Benito Bertoli
  • 25,285
  • 12
  • 54
  • 61