Hi,

I got some problems when specifying the size of my AppWidget / Home
screen widget. The widget is currently available in the sizes 1x1, 2x1
and 4x1 if we count in "cells".

Everything works in E.g. HTC Tattoo (240 x 320), HTC Magic (320x480)
and Motorola Droid (480 x 854), but I do have problems on the DSTL1
(240x400).

I have specified the sizes according to the description here:
http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html

Below is what I got in my xml-files.

The problem on the DSTL1 is that it says that the 4x1 widget is too
large to be placed on the home screen. The 2x1 widget looks like it is
3x2, and the 1x1 widget looks like 2x2.

What should I do? What's wrong?




<!-- small, 1x1 -->

<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/
android"
    android:minWidth="72dip"
    android:minHeight="72dip"
    android:updatePeriodMillis="0"
    android:initialLayout="@layout/widget_configure"/>

<!-- medium, 2x1 -->

<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/
android"
    android:minWidth="146dip"
    android:minHeight="72dip"
    android:updatePeriodMillis="0"
    android:initialLayout="@layout/widget_configure"/>

<!-- large, 4x1 -->

<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/
android"
    android:minWidth="294dp"
    android:minHeight="72dp"
    android:updatePeriodMillis="0"
    android:initialLayout="@layout/widget_configure"/>

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