Setting programmatically the pixel size of a remote ImageVIew?
问题 Let's say that I have a layout that contains <ImageView android:id="@+id/my_id" android:layout_width="123px" android:layout_height="345px" android:padding="0dip" android:scaleType="fitXY" /> which is used in an AppWidget and is set via a RemoteViews. How can I programmatically set the width and height in pixels (overriding the 123 and 345 in the above xml)? (motivation: this image view shows a dynamic png file that is set at runtime via a file URL. If the layout_width and layout_height above