2

When I drag the handle to bring the content of SlidingDrawer on screen (it occupies 1/3 of the screen), it will overlap the main view. I want the main view to be always visible and resize it when the SlidingDrawer is open. It is possible to configure in xml file to resize the main view when SlidingDrawer is open, or I have to make it programmatically using setOnDrawerOpenListener?

skynet
  • 9,898
  • 5
  • 43
  • 52
kukukk
  • 138
  • 1
  • 9

1 Answers1

4

SlidingDrawer doesn't know about the underlying views and will not resize them. You will need to create a custom component to do this.

Romain Guy
  • 97,993
  • 18
  • 219
  • 200
  • I it is possible to resize the main view with setLayoutParams when onDrawerClosed or onDrawerOpend is fired... – kukukk Dec 01 '11 at 10:06