I have an Android widget containing two buttons. But I have no idea how big my widget should be for different DPIs. According to this , it is easy to calculate, but my widget is not a square, it is a rectangle, how to calculate its size?
My widget-provider.xml is as follows:
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minWidth="160dip" android:minHeight="72dip" android:updatePeriodMillis="0" android:initialLayout="@layout/main" />
source share