in album_appwidget.xml android use
    android:layout_width="@dimen/appwidget_width"
    android:layout_height="@dimen/appwidget_height"
to specify the width and height of the widget.
But when system load this widget,it display "problem loading widget".

The dimen is defined in dimens.xml which is also android original code:

<resources>
    <!-- Size of widget album art cutout -->
    <dimen name="appwidget_cutout">198dip</dimen>

    <dimen name="appwidget_width">311dip</dimen>
    <dimen name="appwidget_height">80dip</dimen>
</resources>


And I try to modify to
    android:layout_width="311dip"
    android:layout_height="80dip"
then the system can load the widget well.

Who encounter such case,and what's the problem.

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to