You will be limited in how much you can make only from XML. The easiest way to extend the low resource is to determine the properties android:layout_widthand android:layout_heightthe desired (using the density of pixels independent of dip ). android:layout_width="320dip"will expand you to full screen width (in portrait mode).
If your images are photographs or something with different proportions, then your only choice may be to inflate the view from the code (after determining the correct size).
source
share