How to change orientation of a SlidingDrawer by code

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

How to change orientation of a SlidingDrawer by code

Postby vvestnes » Fri Jul 17, 2009 1:40 pm

My slidingdrawer needs to change orientation when the phone changes orientation.

Initially the slidingdrawer got vertical orientation by XML as an attribute to the SlidingDrawer element.

I cant find a way to change this by code.


Any ideas anybody?
vvestnes
Freshman
Freshman
 
Posts: 5
Joined: Mon Jul 06, 2009 1:43 pm

Top

Postby Emmanuel7 » Sat Jul 18, 2009 11:48 am

I may be wrong, but I though Google's sliding drawer had an imposed orientation.

If you want a more flexible one, you could have a look at the one created by pskink :
http://androidblogger.blogspot.com/2009/01/sliding-drawer-again.html


Hope it helps,
Emmanuel7
Senior Developer
Senior Developer
 
Posts: 164
Joined: Fri Dec 12, 2008 2:17 am
Location: Paris

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests