1

何らかの理由で、アプリ ウィジェットの親が必要以上に大きくなっています。これにより、ユーザーはアイコンをウィジェットに対して本来あるべき方法で上に移動できなくなります。

450x352 にしたいのですが、AppWdigetHostView は 608x390 で、親の Linear Layout は 584x366 です。

ここに画像の説明を入力

widget_large_info.xml

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

誰もこのようなものを見たことがありますか?幅と高さに何をしても、それ自体のサイズを適切に調整したくありません。

4

0 に答える 0