If I reference a drawable in the "drawable" directory, I see the image
in my layout, but if I reference a drawable in the "drawable-hdpi"
directory, I don't see it (but I don't get an error of any sort
either). I want to include the app icon on the splash screen, and
would prefer to use the high-res icon.
This works:
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginRight="20dip"
android:src="@drawable/app_icon" />
This doesn't:
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginRight="20dip"
android:src="@drawable-hdpi/app_icon" />
Thoughts?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en