Hi,
I need to set the width & height of the AppWidget according to the
display dimensions.
Does anyone know how we can set the AppWidget height/width dimension
from code and not from the appwidget-provider XML?
meaning:
instead of using fixed code like this
<appwidget-provider
xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="320px"
android:minHeight ="100px"
android:updatePeriodMillis="43200000"
android:initialLayout="@layout/main">
</appwidget-provider>
i would like to change the two records:
android:minWidth="320px"
android:minHeight ="100px"
Before the App Widget loads.
I can get the display width & height when App widget loads and then i
want to reconfigure the above values
into :
android:minWidth=display.width /3
android:minHeight=display.height /4
?
--
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