android - ImageView quality -
i've finished app, tested on tablet, quality good, when try on smartphone (htc one) bad quality, wanna know why.
layour-normal:
<imageview android:layout_width="210dp" android:layout_height="90dp" android:id="@+id/toplogo" android:layout_margintop="5dp" android:src="@drawable/logo_bleu_petit" android:layout_alignparenttop="true" android:layout_centerhorizontal="true" />
image-size: 250*107
you should put different images in different folders of drawable. example,put 250*107 image in /res/drawable-mdpi, , put 500*214 version of same image in /res/drawable-hdpi. app display different images on devices different screen size. if have 1 low-quality image in /res/drawable,when use device 1080p screen,the image might blown 2x or 4x.then looks in bad quality.
and 1 more thing,try not use fixed width or height on imageview.use scaletype imageview can perform better images of different size.
Comments
Post a Comment