1

As i want to display number of cities on a left side of a screen just like following-it is a new Facebook android application.

when you click on bar shown as a red square around it,the list view on a left side comes into picture after sliding a right part.

Facebook Front Screen

so how is it possible to do it to show list view on a right side by sliding it and another activity on a left side

Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
Hunt
  • 8,215
  • 28
  • 116
  • 256
  • Hi Hunt,Please share the solution you got for this.I am also looking for the same. – Shashank_Itmaster Dec 22 '11 at 12:47
  • Did you find a solution for that? I started building my own component, but it does not work properly – Thiago Dec 30 '11 at 15:19
  • Any sucess ? This kind of UI is common now even you can see in the google currents also, I am not in touch with android at Application level from last one year.. If anybody knows plz let it share to others also.. – Yuvi Apr 23 '12 at 04:59

1 Answers1

1

You should look into the new Fragments API and then also take a look at this question which tells you about adding animations to your Fragment transactions.

Fragments For All

Support Package

Android Compatibility: Working with Fragments

Community
  • 1
  • 1
kaspermoerch
  • 16,127
  • 4
  • 44
  • 67
  • Fragments APIs requires Android 3.X i guess and i am looking for Android 2.X – Hunt Dec 15 '11 at 09:33
  • If you use the Compatability Package in your project, Fragments are supported down to 1.6. Posted link in my answer. – kaspermoerch Dec 15 '11 at 09:41
  • I have added the compatible jar file , but can you tell me where can i find the running samples of fragments api ? – Hunt Dec 15 '11 at 11:29
  • ApiDemos: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/index.html#Fragment – kaspermoerch Dec 15 '11 at 11:33
  • Well i tried those examples and even the example that you posted i.e. Android Compatibility:Working with fragments but i haven't seen a functionality of dual view in which half screen is covered with list view and another with image view , so how to do that ? – Hunt Dec 15 '11 at 11:53
  • i successfully tried working dual view , now the main concern is sliding back n forth with a compatibility and i dont have any idea abt it :( – Hunt Dec 15 '11 at 13:01