0
我有一个RelativeLayout在我有两个图像。问题是:扩大规模。他们显示的方式比预期的要大。这里是我的布局:我的布局中的图像放大,但不应该。我怎样才能防止图像缩放?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gallery_batch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/batch_background">
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/icon_success"
android:id="@+id/view_batch_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:padding="5dp"
android:layout_gravity="center_vertical"/>
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/text_bereits_geladen"
android:layout_toRightOf="@id/view_batch_icon"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"/>
谁能告诉我什么,我做错了什么? 谢谢!
坦克你!我在drawables文件夹中存储了一些grafics,因为我不想为所有分辨率使用相同的图像。 – notme 2010-10-25 15:25:35