Hi to all,

I faced with one strange issue designing my widget layout.
At first I decided to make it 3x2 cells for all supported screens. So
I use minWidth=220dip and minHeight=146dip in my xml/widget.xml:

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

Then I designed several widget layouts - for mdpi, large-mdpi, ldpi
and hdpi - where:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:id="@+id/Widget"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent">
...
</RelativeLayout>

So I expect that for all supporting screens the widget size will fit
3x2 cells, not more, not less.

But currently when I run it on emulator I see that my widget takes
more than a half of a screen for all supporting screens - 4x3 cells if
to talk that the max size is 4x4 cells (as it described here:
http://developer.android.com/guide/practices/ui_guidelines/widget_design.html#sizes).

Even if I'll define exact layout_width and layout_height in my widget
layouts in dip it will still take 4x3 cells, just it's visible part
will have another size.

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

Reply via email to