Hay algo extraño en este ImageView, después de una imagen grande reducida aún hay "espacio libre".Espacio en blanco después de ImageView
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/bb"
android:scaleType="fitStart" />
<TextView
android:id="@+id/textMainBoxTitle"
android:text="some text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
Algunas pantallas:
Eclipse:
eclipse http://img560.imageshack.us/img560/6218/eclipse.png
simulador de:
simulator http://img600.imageshack.us/img600/3023/simulator.png
y la imagen original:
original http://www.janissary.eu/img/obraz.jpg
¿Por qué estoy obteniendo espacio después de la imagen?
La imagen está bien. Si cambio fitstart para fitend, la imagen se dibujará en la parte inferior y el espacio negro estará en la parte superior. No hay problema en Java, creo. Se incluye en main.xml y se llena horizontalmente y se envuelve verticalmente. – Mikooos