I have a ListView that displays items containing an icon and text. The icon, when I put pictures of different sizes in xxhdpi (96x96), xhdpi (64x64), hdpi (48x48) and mdpi (32x32), cut the right side and bottom of the image. The images that i have only the folder xxhdpi (96x96) are not cropped.
Only cropped image (the first) is inside xxhdpi, xhdpi, hdpi and mdpi the rest is only in xxhdpi.
This is the layout that contains the ImageView:
<RelativeLayout
android:id="@+id/rl_container_icon"
android:layout_width="wrap_content"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/iv_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:alpha=".8"
android:contentDescription="@string/app_name"
android:paddingBottom="9dp"
android:paddingLeft="18dp"
android:paddingRight="2dp"
android:paddingStart="18dp"
android:paddingTop="9dp"
android:scaleType="center"
android:src="@drawable/ic_section_bikes" />
</RelativeLayout>
Thank you for your time.
Aucun commentaire:
Enregistrer un commentaire