0

我开发了一个小部件。问题是它没有跨越三星 Galaxy Note 的整个宽度。

<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider 
        xmlns:android="http://schemas.android.com/apk/res/android"
    android:initialLayout="@layout/widget_layout"
    android:minHeight="120dp"
    android:minWidth="300dp"
    android:updatePeriodMillis="0" >

</appwidget-provider>
4

2 回答 2

1

It was my mistake. I tried increasing minWidth but did not re-add the widget hence it did not take effect.

After increasing minWidth, I removed and re-added the widget now it spans across entire width.

于 2012-04-27T06:32:56.767 回答
1

嗨三星 Galaxy Note 是具有 xhdpi 分辨率的大屏幕。所以你必须在 android manifest 中支持大屏幕。

将此添加android:largeScreens="true"到 AndroidManifest.xml 中支持的屏幕中

于 2012-04-27T05:59:12.050 回答