Is there any limit of size for a drawable in an Android ImageView? -


in app widget i'm trying show imageview src taken drawable, don't think it's complicated:

<imageview         android:id="@+id/large_cover"         android:layout_height="100dp"         android:layout_width="100dp"         android:src="@drawable/ic_widget_placeholder_big"/> 

this image ic_widget_placeholder_big doesn't show, widget blank. interesting thing if use image show. tried larger image. don't because think it's issue size of image. tried use hdpi asset xhdpi phone , image showed (pixelated of course).

so wondering if there's limit in terms of size of image imageview source?

this image of 384 × 384 in xhdpi , weights 123 kb

oh , haven't found interesting in logs.

update:

i've tried using drawable in imageview inside app , doesn't show. hmm don't it.

i found issue was. had 1 asset per density , 1 xhdpi folder not correctly exported (damn designer ;) ). either in format or color profile wrong. ended image not showing. luckily had xhdpi device me!


Comments