@sachin : There's no activity.

My basic question was, that can you change the AppWidgetProviderInfo
for a widget after a screen orientation change?

Thanks and Regards,
Kumar Bibek

On Jul 22, 1:45 pm, <[email protected]> wrote:
> ==> If your widget dimention is defined in XML layout then create the
> same file with different dimension under newly created folder
> \res\layout-land.
>
> It will take care of widget positioning when u rotate.
>
> ==> If you are setting the dimension dynamatically then
>
> 1. Put an android:configChanges entry in AndroidManifest.xml file,
> listing the configuration changes you want to handle yourself versus
> allowing Android to handle for you
>
> 2. Implement onConfigurationChanged() in your Activity, which will be
> called when one of the configuration changes you listed in
> android:configChanges occurs
>
> -----Original Message-----
> From: [email protected]
>
> [mailto:[email protected]] On Behalf Of Kumar Bibek
> Sent: Thursday, July 22, 2010 12:45 PM
> To: Android Developers
> Subject: [android-developers] Change widget dimensions on orientation
> change
>
> Hi,
>
> I thought it would be simple, but I am stuck.
>
> I have a widget which has say, a dimension of 294*72(portrait). But when
> the orientation is changed, I need to change this dimension of the
> widget to another dimension which would look good on the landscape
> orientation.
>
> Is this possible?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to