Android: Центрировать изображение

У меня есть линейный макет и изображение ...

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ImageView android:layout_width="wrap_content" android:id="@+id/imageView1"
 android:src="@drawable/icon" android:layout_height="wrap_content"
 android:scaleType="center"></ImageView>

</LinearLayout>

Как мне динамически центрировать изображение, чтобы оно отображалось в центре экрана на всех устройствах ?

44
задан Skizit 23 May 2011 в 19:21
поделиться