[android-developers] Re: How to manage orientation dependent activities?

2010-03-11 Thread Makas Tzavellas
Hmmm... Then I suggest that you do something like this Have the same Activity class but create 2 different classes that behaves differently for portrait and landscape that implements a common interface. And do something like this. public interface ActivityDelegator { // Put methods here th

[android-developers] Re: How to manage orientation dependent activities?

2010-03-11 Thread ailinykh
I mean different behavior. In portrait mode I have one list and a bunch of list oriented actions (add item, delete item) In landscape mode I have two lists (one on left side, another on right), so actions involve two lists (copy, move) On Mar 11, 10:25 am, Makas Tzavellas wrote: > Are you just re

[android-developers] Re: How to manage orientation dependent activities?

2010-03-11 Thread Makas Tzavellas
Are you just referring to just different layout or even different behavior? Because if it's just different layout, you can always use the different layout folders to manage the layouts. E.g. "layout-land" in for landscape layout and the default "layout" folder for portrait. More info at http://d