M
moodsx
Neues Mitglied
- 0
Hallo Leute,
ich möchte dass, das imageview das Bild immer über die gesammt Bildbreite und Höhe anzeigt, jedenfalls so, wo genug Platz ist, nur mit meinem jetzigen layout wird es noch nicht mal in originaler Größe angezeigt. Hier mein Versuch:
Wo liegt hier mein Fehler ?
Danke für Eure Hilfe
ich möchte dass, das imageview das Bild immer über die gesammt Bildbreite und Höhe anzeigt, jedenfalls so, wo genug Platz ist, nur mit meinem jetzigen layout wird es noch nicht mal in originaler Größe angezeigt. Hier mein Versuch:
Code:
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/gray" >
<TableRow>
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:textSize="@dimen/txt_width" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<ImageView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/imageview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_vertical|center_horizontal"
android:background="@color/gray"
android:clickable="true"
android:onClick="reload"
android:scaleType="fitXY"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbars="horizontal|vertical"
android:visibility="visible" />
</TableRow>
</TableLayout>
Wo liegt hier mein Fehler ?
Danke für Eure Hilfe