1

I have two Layouts (screens) within ViewFlipper. Assume first layout width is longer than the second layout width. (Let's say, first layout width is 1000dp and second one has width of 500dp).

I can switch between these two screens easily. At the beginning first screen is fully displayed. When I click a button, second screen will come from right and first screen goes to the left. But I want to keep the second screen and (remember, second screen has less width) a portion of the first screen. That means a half of the first screen disappear. How can I do this?

halfer
  • 19,824
  • 17
  • 99
  • 186
S.Basnagoda
  • 671
  • 2
  • 8
  • 21

1 Answers1

1

You can use this custom dragable space made by matthieu. I am posting here the link. Put it in a new project otherwise it will create the references to your existing activities. This layout will allow you to drag your view group.

Developing an Android Homescreen

Community
  • 1
  • 1
zeroz
  • 11
  • 1