Android AppWidget父布局比需要的大
出于某种原因,我的应用程序小部件的父部件比它应该的大得多。这会导致用户无法以他们应该能够的方式将图标向上移动到小部件上 我希望它是450x352,但AppWdigetHostView是608x390,父线性布局是584x366 widget_large_info.xmlAndroid AppWidget父布局比需要的大,android,android-widget,Android,Android Widget,出于某种原因,我的应用程序小部件的父部件比它应该的大得多。这会导致用户无法以他们应该能够的方式将图标向上移动到小部件上 我希望它是450x352,但AppWdigetHostView是608x390,父线性布局是584x366 widget_large_info.xml <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minWidth="294dp" android
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="294dp"
android:minHeight="72dp"
android:updatePeriodMillis="86400000"
android:initialLayout="@layout/widget_layout_large" />
widget_layout_large.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0dip"
android:background="#FF0000" >
<RelativeLayout
android:layout_width="450dip"
android:layout_height="352dip" >
<!-- sub widgets and views -->
</RelativeLayout>
</LinearLayout>
有人见过这样的东西吗?无论我对宽度和高度做了什么,它都不想正确地调整大小。红色矩形的分辨率是608x390还是584x366?