Re: [android-developers] Is there any way to disable landscape mode for widget?

2011-06-11 Thread Rajani Golakoti
Hi Alexy, Set this android tag in your activity tag in which you are displaying your view. *android:screenOrientation=portrait*. On Fri, Jun 10, 2011 at 5:18 AM, Alexey Onuchin av.onuc...@gmail.comwrote: Hi to all, I'm developing a simple widget for which I want to leave only portrait

Re: [android-developers] Is there any way to disable landscape mode for widget?

2011-06-11 Thread Kostya Vasilyev
Widgets run within the launcher. The launcher's activity is not controlled by the application that provides the widget, so setting screenOrientation is not an option (unless we're talking about writing a launcher). However, one can use regular resource qualifiers - res/layout-port and/or

[android-developers] Is there any way to disable landscape mode for widget?

2011-06-10 Thread Alexey Onuchin
Hi to all, I'm developing a simple widget for which I want to leave only portrait mode. So is there any way to block lanscape mode like we can do it for Activities? Thanks in advance, Alexey -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Is there any way to disable landscape mode for widget?

2011-06-10 Thread Mark Murphy
On Fri, Jun 10, 2011 at 8:18 AM, Alexey Onuchin av.onuc...@gmail.com wrote: I'm developing a simple widget for which I want to leave only portrait mode. So is there any way to block lanscape mode like we can do it for Activities? No, sorry. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Is there any way to disable landscape mode for widget?

2011-06-10 Thread rich friedel
I'm not sorry! I am glad this is not possible... I would be pissed if ONE out of a possible 80 widgets locked my homescreen into a specific display mode. Maybe I'm being harsh but come on, if you're going to do something, think first! This request is right up there with those people who want to