Re: [android-developers] Is there any way to disable landscape mode for widget?
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 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 group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rajani.G. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is there any way to disable landscape mode for widget?
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 layout-land for widget layouts (and other qualifiers as appropriate), or perhaps create dimension resources and put separate versions under res/values and res/values-land (just one more way of doing it). -- Kostya 2011/6/10 Rajani Golakoti rajanigolak...@gmail.com 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 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 group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rajani.G. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is there any way to disable landscape mode for widget?
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) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is there any way to disable landscape mode for widget?
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 do things like control the Home button action. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en